IDBRequest<T> class

The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.

MDN Reference

Implemented types
Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

IDBRequest()
factory

Properties

addEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
addEventListener → ({void Function<K$>(IDBRequestEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on IDBRequest<T>, provided by the IDBRequest$Typings extension

Overload accessor: $1, $2
no setter
dispatchEvent bool Function(Event)

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
error DOMException?

Available on IDBRequest<T>, provided by the IDBRequest$Typings extension

When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
no setter
hashCode int
The hash code for this object.
no setterinherited
onerror ↔ dynamic Function(Event)?

Available on IDBRequest<T>, provided by the IDBRequest$Typings extension

MDN Reference
getter/setter pair
onsuccess ↔ dynamic Function(Event)?

Available on IDBRequest<T>, provided by the IDBRequest$Typings extension

MDN Reference
getter/setter pair
readyState IDBRequestReadyState

Available on IDBRequest<T>, provided by the IDBRequest$Typings extension

Returns "pending" until a request is complete, then returns "done".
no setter
removeEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
removeEventListener → ({void Function<K$>(IDBRequestEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on IDBRequest<T>, provided by the IDBRequest$Typings extension

Overload accessor: $1, $2
no setter
result → T

Available on IDBRequest<T>, provided by the IDBRequest$Typings extension

When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Object

Available on IDBRequest<T>, provided by the IDBRequest$Typings extension

Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
no setter
transaction IDBTransaction?

Available on IDBRequest<T>, provided by the IDBRequest$Typings extension

Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited