FrameSeparateTaskQueue class Null safety

Copyright 2020 ke.com. 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

Properties

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

Methods

handleEventLoopCallback() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
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.
inherited

Operators

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

Static Properties

instance FrameSeparateTaskQueue?
read-only