damphat / mela_messenger

0 stars 0 forks source link

Dart-language questions #9

Open damphat opened 4 years ago

damphat commented 4 years ago

assert

assert(() {
  print('this function is only executed with --enable-asserts')
}())

flutter run will enable-asserts by default?

type inferencing

var a = <int> [1,2,3];
var b = [1,2,3];
Set<int> c = [1,2,3];
Set<double> c = [1,2,3];
Set<double> c = <int>[1,2,3];

@nonVirtual

https://github.com/dart-lang/sdk/issues/34378