Not documented.

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

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

completed Future<Database>
read-only

Provides a Future which will be completed once the transaction has completed.

db Database
read-only

error DomError
read-only

mode String
read-only

on Events
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.

onAbort Stream<Event>
read-only

Stream of abort events handled by this Transaction.

onComplete Stream<Event>
read-only

Stream of complete events handled by this Transaction.

onError Stream<Event>
read-only

Stream of error events handled by this Transaction.

Methods

abort() → void

addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited

dispatchEvent(Event event) → bool
inherited

objectStore(String name) → ObjectStore

removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited