Marks Dart and Flutter Blog

Arrow Functions in Dart
Arrow Functions in Dart
Introduction Dart offers arrow functions, which enable the developer to shorten single-line functions that calculate & return something. You can use: => xxx instead of: { return xxx; } Arrow... Read more...
Method Cascades in Dart
Method Cascades in Dart
Introduction Method cascades can help with the brevity of your code. Lets Run Some Code class Logger { void log(dynamic v){ print(DateTime.now().toString() + ' ' + v); } } main(){... Read more...
Asynchronous Processing in Dart and Flutter - Part Three - Async and Await
Asynchronous Processing in Dart and Flutter - Part Three - Async and Await
Async When an async method is called, a Future is immediately returned, and the body of the method is executed later. Later on, as the body of the async function... Read more...
Asynchronous Processing in Dart and Flutter - Part Two - Futures and Error Handling
Asynchronous Processing in Dart and Flutter - Part Two - Futures and Error Handling
What is a Future? Futures are used to store the results of asynchronous processes.  As mentioned in Part One, asynchronous operations can result in Success (often with data) and Failure... Read more...
Asynchronous Processing in Dart and Flutter - Part One - Overview
Asynchronous Processing in Dart and Flutter - Part One - Overview
What is Asynchronicity? It is the ability to do multiple things at the same time. UI Thread A thread is a thread of execution in a program. It is some... Read more...
Assertions in Dart and Flutter
Assertions in Dart and Flutter
Why Have Error & Exception Handling? Most software systems are complicated and written by a team of people.   Complexity arises from multiple sources: The business domain. The act of... Read more...
Maps in Dart and Flutter
Maps in Dart and Flutter
Introduction An object that maps keys to values. Both keys and values in a map may be of any type. A Map is a dynamic collection. In other words, Maps... Read more...
Lists in Dart and Flutter
Lists in Dart and Flutter
Introduction Dart Combines Lists and Arrays In Dart, a List is an ordered Collection (sometimes called a sequence). Unlike other languages, an Array and a List have been combined together and are the same... Read more...
Web Development in Google Dart
Web Development in Google Dart
The mainstream Dart web development route is now writing code with Dart but compiling and running as JavaScript using webdev, which works with the build_runner utility.   Installing You will have... Read more...
Command Line Tools Included With Google Dart
Command Line Tools Included With Google Dart
Name Description dart Enables you to execute a .dart file within the Dart Virtual Machine. dart2js Compiles dart source code to JavaScript. dartanalyser Analyses dart source code. This is used... Read more...
Typing in Google Dart (Part 1)
Typing in Google Dart (Part 1)
Introduction Typically, computer languages have fallen into two camps: Statically-typed languages. Dynamically-typed languages. Statically-typed Languages These languages have specific variable types and the developer compiles the code using an ‘ahead-of-time’... Read more...
Testing Objects for Equality in Google Dart
Testing Objects for Equality in Google Dart
In Dart, you compare equality using the ‘==’ operator rather than an ‘equals’ method. Sometimes you need to override it this operator in your class to ensure that instances of... Read more...