TaskCallback<T> typedef

TaskCallback<T> = FutureOr<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> = FutureOr<T> Function();