Change class

One captured row-level change.

Constructors

Change({required String op, required String table, required List<String> columns, required List<String> pkColumns, List<Object?>? oldValues, List<Object?>? newValues})
Change.fromJson(Map<String, Object?> j)
factory

Properties

columns List<String>
Column names, in table order at recording time.
final
hashCode int
The hash code for this object.
no setterinherited
newValues List<Object?>?
Post-mutation row values. Null for DELETE.
final
oldValues List<Object?>?
Pre-mutation row values. Null for INSERT.
final
op String
'INSERT', 'UPDATE', or 'DELETE'.
final
pkColumns List<String>
Names of the columns that uniquely identify the row (used to locate the target row when replaying UPDATE/DELETE). Empty when the source table has no primary key — in that case replay falls back to whole-row matching.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
table String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited