SchedulingStrategy typedef Null safety

SchedulingStrategy = bool Function({required int priority, required SchedulerBinding scheduler})

Signature for the SchedulerBinding.schedulingStrategy callback. Called whenever the system needs to decide whether a task at a given priority needs to be run.

Return true if a task with the given priority should be executed at this time, false otherwise.

See also:

Implementation

typedef SchedulingStrategy = bool Function({ required int priority, required SchedulerBinding scheduler });