UserPromptResolver<T extends DatumEntityBase> class
A resolver that delegates the conflict decision to the user via a prompt.
- Implemented types
Constructors
-
UserPromptResolver({required Future<
DatumResolutionStrategy> onPrompt(DatumConflictContext context, T? local, T? remote), DatumMergeFunction<T> ? onMerge}) - Creates a user prompt resolver with a custom prompt function.
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> ? -
An optional function that defines how to merge a local and remote entity
if the user chooses the
mergestrategy.final -
onPrompt
→ Future<
DatumResolutionStrategy> Function(DatumConflictContext context, T? local, T? remote) -
Function that prompts the user to choose a resolution strategy.
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