TableUpdateEvent<T> class
Event emitted when a row is updated in a table
Contains both the old and new versions of the row, allowing handlers to compare what changed.
Example:
noteTable.updateEventStream.listen((event) {
print('Note updated:');
print(' Old title: ${event.oldRow.title}');
print(' New title: ${event.newRow.title}');
if (event.oldRow.title != event.newRow.title) {
print('Title changed!');
}
});
- Inheritance
-
- Object
- TableEvent<
T> - TableUpdateEvent
Constructors
- TableUpdateEvent(EventContext context, T oldRow, T newRow)
Properties
- context → EventContext
-
Context containing the Event and client access
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- newRow → T
-
The row after the update
final
- oldRow → T
-
The row before the update
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited