ConflictResolutionStrategy enum

Enum representing different conflict resolution strategies.

Inheritance
Available extensions

Values

useLocal → const ConflictResolutionStrategy

Use the local version (last-write-wins locally)

useRemote → const ConflictResolutionStrategy

Use the remote version (last-write-wins remotely)

merge → const ConflictResolutionStrategy

Merge both versions (custom merge logic)

useLatest → const ConflictResolutionStrategy

Use the version with the latest timestamp

useHighestVersion → const ConflictResolutionStrategy

Use the version with the highest version number

custom → const ConflictResolutionStrategy

Custom resolution strategy

skip → const ConflictResolutionStrategy

Skip the conflict (don't sync this entity)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String

Available on ConflictResolutionStrategy, provided by the ConflictResolutionStrategyExtension extension

Returns the string representation of the resolution strategy.
no setter

Methods

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

Constants

values → const List<ConflictResolutionStrategy>
A constant List of the values in this enum, in order of their declaration.