Priority class Null safety

A task priority, as passed to SchedulerBinding.scheduleTask.

Annotations

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
Integer that describes this Priority value.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator +(int offset) Priority
Returns a priority relative to this priority. [...]
operator -(int offset) Priority
Returns a priority relative to this priority. [...]
operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

animation → const Priority
A task to run even when animations are running.
Priority._(100000)
idle → const Priority
A task to run after all other tasks, when no animations are running.
Priority._(0)
kMaxOffset → const int
Maximum offset by which to clamp relative priorities. [...]
10000
touch → const Priority
A task to run even when the user is interacting with the device.
Priority._(200000)