AsyncCallback typedef Null safety

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:

Implementation

typedef AsyncCallback = Future<void> Function();