Transaction class

Provides a scope to safely write data to a Realm. Can be created using Realm.beginWrite or Realm.beginWriteAsync.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isOpen bool
Returns whether the transaction is still active.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

commit() → void
Commits the changes to the Realm.
commitAsync([CancellationToken? cancellationToken]) Future<void>
Commits the changes to the Realm asynchronously. Canceling the commit using the cancellationToken will not abort the transaction, but rather resolve the future immediately with a CancelledException.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rollback() → void
Undoes all changes made in the transaction.
toString() String
A string representation of this object.
inherited

Operators

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