Open
Description
If we want to change the signature of Future.value
to feature a required parameter, then the shorthand, Future.value()
(with zero args), used for Future<void>
s or Future<Null>
perhaps, would disappear. Future.void()
would be a nice way to migrate code incrementally. Would there maybe be const
/ performance benefits to this as well?
Is there a similar incremental move for Completer.complete()
(zero arguments)? Maybe a Completer.completeVoid()
method? It would be cool to make it an extension method, in an extension on Completer<void>
. Unfortunately, an extension on Completer<void>
matches statically on any-and-all Completer types.