You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type 'WhereIterable<int>' is not a subtype of type 'List<int>'
#0 main (file:///C:/Users/shina/Desenvolvimento/dart_projects/tests_dart/example/main.dart:31:3)
#1 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#2 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Well, if "where" doesn't return an List, why do the compiler let it be assigned to a List<int>?
It would save us tons of hours of developemnt trying to debug that.
The text was updated successfully, but these errors were encountered:
This happens VERY OFTEN with Flutter developers.
Check this simple code:
It compiles properly but gives runtime error:
Well, if "where" doesn't return an
List
, why do the compiler let it be assigned to aList<int>
?It would save us tons of hours of developemnt trying to debug that.
The text was updated successfully, but these errors were encountered: