Transaction class

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

Constants

abortEventEventStreamProvider<Event>
@DocsEditable(), @DomName('IDBTransaction.abortEvent')

Static factory designed to expose abort events to event handlers that are not necessarily instances of Transaction.

const EventStreamProvider<Event>('abort')
completeEventEventStreamProvider<Event>
@DocsEditable(), @DomName('IDBTransaction.completeEvent')

Static factory designed to expose complete events to event handlers that are not necessarily instances of Transaction.

const EventStreamProvider<Event>('complete')
errorEventEventStreamProvider<Event>
@DocsEditable(), @DomName('IDBTransaction.errorEvent')

Static factory designed to expose error events to event handlers that are not necessarily instances of Transaction.

const EventStreamProvider<Event>('error')

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only

Constructors

Transaction.internal_()

Properties

completedFuture<Database>
read-only

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

dbDatabase
@DocsEditable(), @DomName('IDBTransaction.db'), read-only
errorDomException
@DocsEditable(), @DomName('IDBTransaction.error'), read-only
modeString
@DocsEditable(), @DomName('IDBTransaction.mode'), read-only
objectStoreNamesList<String>
@DocsEditable(), @DomName('IDBTransaction.objectStoreNames'), @Experimental(), read-only
onAbortStream<Event>
@DocsEditable(), @DomName('IDBTransaction.onabort'), read-only

Stream of abort events handled by this Transaction.

onCompleteStream<Event>
@DocsEditable(), @DomName('IDBTransaction.oncomplete'), read-only

Stream of complete events handled by this Transaction.

onErrorStream<Event>
@DocsEditable(), @DomName('IDBTransaction.onerror'), read-only

Stream of error events handled by this Transaction.

hashCodeint
read-only, inherited
onEvents
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.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

abort() → void
@DocsEditable(), @DomName('IDBTransaction.abort')
objectStore(String name) → ObjectStore
@DocsEditable(), @DomName('IDBTransaction.objectStore')
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
dispatchEvent(Event event) → bool
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
toString() → String
inherited

Returns the result of the JavaScript objects toString method.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-indexed_db/Transaction-class.html