Dart 2 compatibility issue / type '_Future' is not a subtype of type 'FutureOr<Null>'
g123k opened this issue · 2 comments
g123k commented
Hello,
When using Dart2 on a Flutter project, the signOut() method is not working:
E/flutter (20982): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (20982): type '_Future' is not a subtype of type 'FutureOr<Null>' where
E/flutter (20982): _Future is from dart:async
E/flutter (20982): FutureOr is from dart:async
E/flutter (20982): Null is from dart:core
E/flutter (20982):
E/flutter (20982): #0 FacebookLogin.logOut (package:flutter_facebook_login/flutter_facebook_login.dart:150:42)
E/flutter (20982): <asynchronous suspension>
More details in this issue: flutter/flutter#15654
roughike commented
Hi!
Thanks for the info. I'll look into making this Dart 2 compatible during the weekend.
roughike commented
Should be now fixed! If possible, confirm that it does indeed work for you :)