Transaction constructor

Transaction({
  1. bool? committed,
  2. DataSnapshot? snapshot,
})

Creates a new Transaction with optional committed and snapshot properties.

Implementation

factory Transaction({bool? committed, DataSnapshot? snapshot}) =>
    Transaction.fromJsObject(
      database_interop.TransactionJsImpl(
        committed: committed,
        snapshot: snapshot?.jsObject,
      ),
    );