Priority class

A task priority, as passed to SchedulerBinding.scheduleTask.

Annotations
  • @immutable

Properties

value int
Integer that describes this Priority value.
read-only
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns 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 ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

animation → const Priority
A task to run even when animations are running.
const Priority._(100000)
idle → const Priority
A task to run after all other tasks, when no animations are running.
const 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.
const Priority._(200000)