beginWriteAsync method

Future<Transaction> beginWriteAsync([
  1. CancellationToken? cancellationToken
])

Asynchronously begins a write transaction for this Realm. You can supply a CancellationToken to cancel the operation.

Implementation

Future<Transaction> beginWriteAsync([CancellationToken? cancellationToken]) async {
  await realmCore.beginWriteAsync(this, cancellationToken);
  return Transaction._(this);
}