OptimisticEntry class

Constructors

OptimisticEntry({required String tableName, required OptimisticChangeType type, required dynamic primaryKey, Map<String, dynamic>? oldRowJson, Map<String, dynamic>? newRowJson, bool baseCommitted = true})

Properties

baseCommitted bool
True iff, at the moment this change was applied, the row it displaces was a real committed row (no pending optimistic entry already sat on this table+pk). When false, the "base" this entry would restore on rollback is itself another uncommitted overlay — restoring it would resurrect a phantom, so the rollback must drop the pk instead.
final
hashCode int
The hash code for this object.
no setterinherited
newRowJson Map<String, dynamic>?
final
oldRowJson Map<String, dynamic>?
final
primaryKey → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
final
type OptimisticChangeType
final

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