Callback<OUTPUT extends Object?> typedef Null safety

Callback<OUTPUT extends Object?> = OUTPUT Function()

Example:

final Callback<int> callback;
...
final output = callback();

Implementation

typedef Callback<OUTPUT extends Object?> = OUTPUT Function();