MergeResolver<T extends DatumEntityInterface> class
A resolver that uses a provided function to merge conflicting entities.
- Implemented types
Constructors
-
MergeResolver({required DatumMergeFunction<
T> onMerge}) -
Creates a MergeResolver with a custom
onMergefunction.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
A descriptive name for the resolver strategy (e.g., "LastWriteWins").
no setteroverride
-
onMerge
→ DatumMergeFunction<
T> -
The function that contains the custom logic for merging two entities.
final
- 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
-
resolve(
{T? local, T? remote, required DatumConflictContext context}) → Future< DatumConflictResolution< T> > -
Resolves a conflict between a local and remote version of an entity.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited