TransactionCommitted class

Fired after a transaction commits successfully.

Example

connection.onEvent<TransactionCommitted>((event) {
  print('Transaction committed on ${event.connectionName}');
});
Inheritance

Constructors

TransactionCommitted(OrmConnection connection, {DateTime? timestamp})

Properties

connection → OrmConnection
The connection where this event occurred.
finalinherited
connectionName → String
The name of the connection (convenience accessor).
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
When the event occurred.
finalinherited

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