dart-flutter-future-tutorial

Dart/Flutter Future tutorial with examples

Asynchronous programming allows a program to do work while waiting for something else to complete. In this tutorial, we’ll show you how to work with Future in Dart (also in Flutter). At the end, you’re gonna know:

  • Introduction to Dart Future
  • How to create Future, Future delayed and value methods
  • Basic Future usage: then, catchError and callback
  • Way to use Future async-await
  • Future multiple await/then for chain of multiple asynchronous methods
  • Equivalent of ‘finally’: Future whenComplete
  • Future wait for multiple futures complete

Related Posts:
Dart/Flutter Constructors tutorial with examples
Dart/Flutter String Methods & Operators tutorial with examples
Dart/Flutter List Tutorial with Examples
Dart/Flutter Map Tutorial with Examples

Read More

dart-convert-object-json-feature-image

Dart/Flutter – Convert Object, List to JSON string

In this Dart/Flutter JSON encode tutorial, I will show you ways to convert Object, Nested Object, List, List of JSON objects into JSON string. Finally, you can convert a complex Nested Object (that contains some fields and a List of objects field) into JSON string.

Related Posts:
Dart/Flutter – Convert/Parse JSON string, array into Object, List
Dart/Flutter Constructors tutorial with examples
Dart/Flutter String Methods & Operators tutorial with examples
Dart/Flutter Future Tutorial with Examples
Dart/Flutter List Tutorial with Examples
Dart/Flutter Map Tutorial with Examples

Read More

dart-round-double-feature-image

Dart – How to round double number

In this tutorial, we’re gonna show you how to round double number in Dart. You will know the ways to:

  • round double to int
  • round double to integer double value
  • round double to N decimal places

Related Posts:
Dart/Flutter Constructors tutorial with examples
Dart/Flutter String Methods & Operators tutorial with examples
Dart/Flutter Future Tutorial with Examples
Dart/Flutter List Tutorial with Examples
Dart/Flutter Map Tutorial with Examples

Read More

dart-flutter-map-complete-reference-feature-image

Dart/Flutter Map, HashMap Tutorial with Examples

In this tutorial, we’ll show you many methods and functions to work with a Map in Dart (also in Flutter). You will know:

  • Introduction to Dart Map, HashMap, LinkedHashMap, SplayTreeMap
  • How to create, initialize, add, get value, update, remove entriess in a Map
  • Ways to iterate, search, filter, transform a Map in Dart/Flutter
  • Way to sort a Map in Dart/Flutter

Related Posts:
Dart/Flutter – Convert Object to JSON string
Dart/Flutter – Convert/Parse JSON string, array into Object, List
Dart/Flutter – Convert Map to List & List to Map

Dart/Flutter Constructors tutorial with examples
Dart/Flutter String Methods & Operators tutorial with examples
Dart/Flutter Future Tutorial with Examples
Dart/Flutter List Tutorial with Examples

Read More