Marks Dart and Flutter Blog

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...
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...
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...