TaskCallback<T> typedef Null safety

TaskCallback<T> = T Function()

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();