SyncPriority class
A sync priority. Higher = fires first.
Constructors
- SyncPriority(int value)
-
Creates a SyncPriority with a custom
numeric value.
const
Properties
Methods
-
firesBefore(
SyncPriority other) → bool -
Returns
trueif this priority fires beforeother. -
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.