AsyncCallback typedef Null safety

Future<void> AsyncCallback()

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:

Implementation

typedef AsyncCallback = Future<void> Function();