SchedulingStrategy typedef
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:
- defaultSchedulingStrategy, the default SchedulingStrategy for SchedulerBinding.schedulingStrategy.
Implementation
typedef SchedulingStrategy = bool Function({ required int priority, required SchedulerBinding scheduler });