For example if you have the list:
List<Map<String,int>> list = <Map<String,int>>[
{"string1": 44},
{"string2" : "string in place of int"}
];
or
List<Map<String,int>> list = new List<Map<String,int>>();
list.addAll([
{"string1": 44},
{"string2" : "string in place of int"}]
);
Shouldn't there be a warning for "string in place of int" ?
Types are not used by Dart unless you execute your code in checked mode.
When Dart is not in checked mode (which should be the case in production) having no types at all, wrong types or right types makes no difference (no error, no speed gain).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With