Marks Dart and Flutter Blog

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...
Exceptions and Error Handling in Dart and Flutter
Exceptions and Error Handling 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...
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...
Object-Orientated Features in Google Dart for Java / .NET Developers
Object-Orientated Features in Google Dart for Java / .NET Developers
Object-Orientated Language Features Modules Unlike Java and C#, Dart allows you to declare multiple objects within a single Dart file. This has made our example code a single cut-n-paste! Private... 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...
Dynamic Typing - 'var' vs 'dynamic' in Google Dart
Dynamic Typing - 'var' vs 'dynamic' in Google Dart
Interchangeable Most of the Time You can define untyped variables by declaring them using the ‘var’ or ‘dynamic’ keywords. The ‘var’ keyword declares a variable without specifying its type, leaving... Read more...
Using Mixins in Google Dart / Google Flutter
Using Mixins in Google Dart / Google Flutter
As mentioned at the start of this book, a Mixin is a class that contains methods for use by other classes without it having to be the parent class of... Read more...