AsyncCallback typedef
AsyncCallback =
Future<void> Function()
Signature of callbacks that have no arguments and return no data, but that return a Future to indicate when their work is complete.
See also:
- VoidCallback, a synchronous version of this signature.
- AsyncValueGetter, a signature for asynchronous getters.
- AsyncValueSetter, a signature for asynchronous setters.
Implementation
typedef AsyncCallback = Future<void> Function();