SyncDecision class
Sync decision result from policy evaluation.
Constructors
- SyncDecision({required bool shouldSync, required String reason, int? batchLimit, Duration? delay})
-
Creates a sync decision.
const
Properties
- batchLimit → int?
-
Number of locations to sync (if batching).
final
- delay → Duration?
-
Suggested delay before sync.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- reason → String
-
Reason for the decision.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldSync → bool
-
Whether sync should proceed.
final
Methods
-
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
Static Methods
-
batch(
int size, {Duration? delay}) → SyncDecision - Sync with batching.
-
defer(
String reason, {Duration? delay}) → SyncDecision - Sync should be deferred.
Constants
- proceed → const SyncDecision
- Sync should proceed immediately.