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 – Sort list of Objects
Dart – Convert Object to Map (Flutter) and Vice Versa

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


Kotlin sum(), sumBy(), sumByDouble() and BigDecimal in List, Map example

In this Kotlin tutorial, I will show you some examples that uses sum(), sumBy(), sumByDouble() for List, Map. We’re gonna create sum() & sumByBigDecimal() which also work for List of BigDecimal objects.

Related Posts:
Kotlin List & Mutable List tutorial with examples
How to work with Kotlin HashMap
Kotlin Fold Example: fold(), foldRight(), foldIndexed(), foldRightIndexed()
Kotlin groupBy(), groupingBy() example

Read More