Dart Typedef explanation and examples

Typedef in dart with examples

Typedef in dart : typedef is a function-type alias. Functions are objects in dart-like any other type. typedef are alias for functions. typedef keyword is used to define a typedef.   How to create and use a typedef : We can define a function signature using typedef. That signature can Read more…

Generators in dart with examples

Dart generators : Dart generators are used to produce a sequence of values lazily. We have two different types of generators called synchronous and asynchronous generators. In this post, I will show you how these generators works with examples.   Synchronous generator : sync* is used to create one synchronous Read more…

Dart: math library Point class

Point class in dart, its properties and methods : Dart math library, dart:math provides different mathematical functions and constants. One of its utility class is the Point class. This class is useful to represent two dimensional positions. It provides a couple of different functions and properties used in two dimensional Read more…

Dart string splitMapJoin examples

Dart string splitMapJoin : splitMapJoin is an utility method of dart string. It is used to split a string, convert its part and join the parts back to a new string.   Definition : Below is the definition of this method : String splitMapJoin (Pattern pattern,{String onMatch(Match m),String onNonMatch(String s)}) Read more…