Transaction class
Provides a scope to safely write data to a Realm. Can be created using Realm.beginWrite or Realm.beginWriteAsync.
Properties
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