SyncPriority class

A sync priority. Higher = fires first.

Constructors

SyncPriority(int value)
Creates a SyncPriority with a custom numeric value.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The numeric value.
final

Methods

firesBefore(SyncPriority other) bool
Returns true if this priority fires before other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

background → const SyncPriority
Background: fires last, when nothing else is going on. Use for "nice to have" syncs (e.g. analytics).
critical → const SyncPriority
Critical: fires before everything else. Use for auth token refresh, security alerts, etc.
high → const SyncPriority
High: fires before normal triggers. Use for "user is looking at this screen right now" priorities.
low → const SyncPriority
Low: fires after normal triggers. Use for background reconciliation.
normal → const SyncPriority
Normal: the default. Most sync triggers.