TaskCallback<T> typedef Null safety

T TaskCallback<T>()

Signature for SchedulerBinding.scheduleTask callbacks.

The type argument T is the task's return value. Consider void if the task does not return a value.

Implementation

typedef TaskCallback<T> = T Function();