DatumConflictResolution<T extends DatumEntityBase> class

Result of a conflict resolution attempt.

Constructors

DatumConflictResolution.abort(String reason)
Creates an aborted resolution.
const
DatumConflictResolution.merge(T mergedData)
Creates a resolution with merged data.
const
DatumConflictResolution.requireUserInput(String message)
Creates a resolution requiring user input.
const
DatumConflictResolution.useLocal(T localData)
Creates a resolution that uses the local version.
const
DatumConflictResolution.useRemote(T remoteData)
Creates a resolution that uses the remote version.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String?
Optional message about the resolution.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
requiresUserInput bool
Whether user input is required to proceed.
final
resolvedData → T?
The resolved entity data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strategy DatumResolutionStrategy
The strategy used to resolve the conflict.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({DatumResolutionStrategy? strategy, T? resolvedData, bool? requiresUserInput, String? message, bool setResolvedDataToNull = false}) DatumConflictResolution<T>
Creates a copy of this resolution with updated fields.
copyWithNewType<E extends DatumEntityBase>() DatumConflictResolution<E>
Creates a copy of the resolution with a different generic type. This is useful for upcasting to DatumConflictResolution<DatumEntity>.
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