FrameSeparateTaskQueue class Null safety

Copyright 2020 All rights reserved. @date 5/7/21 11:10 AM @desc Split the frame queue and add tasks to the queue through the ScheduleTask. By default, there is no limit to the size of the queue, so limit the size after setting maxTaskSize.

Reference SchedulerBinding, each task has a priority, there are three categories: Idle Animation Touch. Each frame takes the first task (FIFO) out of the queue and schedules it until the queue is empty. Use the SchedulingStrategy policy to determine whether the task should be executed:

If the policy is successful, the task is executed If the policy fails, a scheduling attempt is made after the next frame is rendered


hashCode int
The hash code for this object.
maxTaskSize int
read / write
runtimeType Type
A representation of the runtime type of the object.
schedulingStrategy SchedulingStrategy
read / write
taskLength int


handleEventLoopCallback() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
resetMaxTaskSize() → void
scheduleTask<T>(TaskCallback<T> task, Priority priority, ValueGetter<bool> canIgnore, {String? debugLabel, Flow? flow, int? id}) Future<T>
shuffleTask(bool condition(TaskEntry taskEntry)) → void
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Properties

instance FrameSeparateTaskQueue?