Before ‘m3’ you could check if a Future was completed with ‘completer.future.isComplete’ this seems to be gone. Is there a replacement? or do I need to save it myself then
(it seems inside the _CompleterImpl there is still a field ‘_isComplete’ but its not exposed
Before ‘m3’ you could check if a Future was completed with ‘completer.future.isComplete’ this seems
Share
With M3 Dart, it’s best to just use your own flag.
Dart is a single threaded language so there is no race condition here.
Note that the [action] function is called when this future completes, whether it does so with a value or with an error.