IsolateStrategy class

A strategy that runs the sync process in a background isolate.

Implemented types

Constructors

IsolateStrategy(DatumSyncExecutionStrategy delegate, {bool forceIsolateInTest = false})
Creates a strategy that runs the provided delegate in a background isolate.
const

Properties

delegate DatumSyncExecutionStrategy
The delegate strategy to execute inside the isolate.
final
forceIsolateInTest bool
Whether to force using an isolate even in tests.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute<T extends DatumEntityInterface>(List<DatumSyncOperation<T>> operations, Future<void> processOperation(DatumSyncOperation<T> operation), bool isCancelled(), void onProgress(int completed, int total), {DatumLogger? logger}) Future<void>
A strategy that runs the sync process in a background isolate to avoid blocking the UI thread.
override
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