QoS enum
Quality of Service (QoS) priority for task execution.
iOS: Maps to DispatchQoS for task execution priority. Android: Ignored (WorkManager handles priority automatically).
Values
- utility → const QoS
-
Low priority - User is not waiting.
Use Cases: Prefetching, maintenance, non-urgent sync.
- background → const QoS
-
Default priority - Deferrable work.
Use Cases: Most background tasks, indexing, cleanup.
- userInitiated → const QoS
-
Important work - User may be waiting.
Use Cases: Explicit user action, data refresh from user request.
- userInteractive → const QoS
-
Critical work - User actively waiting.
Use Cases: UI updates, immediate user-facing operations. Note: Avoid for background tasks (defeats purpose of background work).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited