Transaction class
- Inheritance
- Object
- JSObject
- DartHtmlDomObject
- EventTarget
- Transaction
- Annotations
- @DomName('IDBTransaction')
- @Unstable()
Constants
- abortEvent → EventStreamProvider<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') - completeEvent → EventStreamProvider<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') - errorEvent → EventStreamProvider<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
- instanceRuntimeType → Type @Deprecated("Internal Use Only"), read-only
Constructors
Properties
- completed → Future<Database> read-only
-
Provides a Future which will be completed once the transaction has completed.
- db → Database @DocsEditable(), @DomName('IDBTransaction.db'), read-only
- error → DomException @DocsEditable(), @DomName('IDBTransaction.error'), read-only
- mode → String @DocsEditable(), @DomName('IDBTransaction.mode'), read-only
- objectStoreNames → List<String> @DocsEditable(), @DomName('IDBTransaction.objectStoreNames'), @Experimental(), read-only
- onAbort → Stream<Event> @DocsEditable(), @DomName('IDBTransaction.onabort'), read-only
-
Stream of
abort
events handled by thisTransaction
. - onComplete → Stream<Event> @DocsEditable(), @DomName('IDBTransaction.oncomplete'), read-only
-
Stream of
complete
events handled by thisTransaction
. - onError → Stream<Event> @DocsEditable(), @DomName('IDBTransaction.onerror'), read-only
-
Stream of
error
events handled by thisTransaction
. - hashCode → int read-only, inherited
- 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.
- runtimeType → Type 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