Reputation: 3219
I got the following error in the console while running my app:
flutter: type '() => Null' is not a subtype of type '(dynamic) => FutureOr<dynamic>' of 'f'
Unfortunately it doesn't tell me which code actually caused this error? Why is flutter missing some more information in the output?
Visual Studio Code 1.28.2
Flutter 0.9.4
Dart VM version: 2.0.0
Upvotes: 2
Views: 198
Reputation: 267784
Since you didn't put any code, so as far as I can tell, you are using ()
which is returning Null, and you were supposed to use (dynamic value)
returning Future
in your method declaration somewhere in your code.
Upvotes: 1