Colon after Constructor in dart

The part after : is called “initializer list. It is a ,-separated list of expressions that can access constructor parameters and can assign to instance fields, even final instance fields. This is handy to initialize final fields with calculated values. The initializer list is also used to call other constructors like : …, super(‘foo’). Since … Read more