CellEdit<T> class

One cell's value before and after an edit.

Changes are recorded per cell rather than per row so that undo works whatever shape the row model has. An immutable model could be restored by keeping the old row object, but a model whose setter mutates in place cannot: the "old row" and the new one are the same object. Replaying a value through the column's setter is the one move that works for both.

Constructors

CellEdit({required T row, required String field, required Object? before, required Object? after})
const

Properties

after → Object?
final
before → Object?
The value the cell held before the edit, and after it.
final
field → String
final
hashCode → int
The hash code for this object.
no setterinherited
inverse → CellEdit<T>
This change, the other way round.
no setter
row → T
The row as it was when the change was made.
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
toString() → String
A string representation of this object.
override

Operators

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