VoidCallback typedef Null safety

VoidCallback = void Function()

Example:

final VoidCallback callback;
...
callback();

Implementation

typedef VoidCallback = void Function();