SchedulingStrategy typedef Null safety

bool SchedulingStrategy(
  1. {required int priority,
  2. 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:


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