This is exposed by SchedulerBinding.schedulerPhase.
The values of this enum are ordered in the same order as the phases occur, so their relative index values can be compared to each other.
See also the discussion at WidgetsBinding.drawFrame.
- idle → const SchedulerPhase
No frame is being processed. Tasks (scheduled by
WidgetsBinding.scheduleTask), microtasks (scheduled by scheduleMicrotask), Timer callbacks, event handlers (e.g. from user input), and other callbacks (e.g. from Futures, Streams, and the like) may be executing.
- midFrameMicrotasks → const SchedulerPhase
Microtasks scheduled during the processing of transient callbacks are current executing.
This may include, for instance, callbacks from futures resolved during the transientCallbacks phase.
- persistentCallbacks → const SchedulerPhase
The persistent callbacks (scheduled by
WidgetsBinding.addPersistentFrameCallback) are currently executing.
- postFrameCallbacks → const SchedulerPhase
The post-frame callbacks (scheduled by
WidgetsBinding.addPostFrameCallback) are currently executing.
Typically, these callbacks handle cleanup and scheduling of work for the next frame.
- transientCallbacks → const SchedulerPhase
The transient callbacks (scheduled by
WidgetsBinding.scheduleFrameCallback) are currently executing.
Typically, these callbacks handle updating objects to new animation states.
→ const List<
A constant List of the values in this enum, in order of their declaration.