class
Transaction

(Not documented.)

Annotations
  • DomName('IDBTransaction')
  • Unstable()
Extends

Constants

EventStreamProvider<Event> abortEvent = const EventStreamProvider<Event>('abort')
const
Static factory designed to expose abort events to event handlers that are not necessarily instances of Transaction.
EventStreamProvider<Event> completeEvent = const EventStreamProvider<Event>('complete')
const
Static factory designed to expose complete events to event handlers that are not necessarily instances of Transaction.
EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error')
const
Static factory designed to expose error events to event handlers that are not necessarily instances of Transaction.

Properties

Future<Database> completed
read-only
Provides a Future which will be completed once the transaction has completed.
Database db
read-only
DomError error
read-only
String mode
read-only
Stream<Event> onAbort
read-only
Stream of abort events handled by this [Transaction].
Stream<Event> onComplete
read-only
Stream of complete events handled by this [Transaction].
Stream<Event> onError
read-only
Stream of error events handled by this [Transaction].
Events on
read-only , inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

Methods

abort() → void
objectStore(String name) → ObjectStore
addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
dispatchEvent(Event event) → bool
inherited