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.
- 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< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on IDBRequest<
Overload accessor: $1, $2T> , provided by the IDBRequest$Typings extensionno setter - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - error → DOMException?
-
Available on IDBRequest<
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.T> , provided by the IDBRequest$Typings extensionno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- onerror ↔ dynamic Function(Event)?
-
Available on IDBRequest<
MDN ReferenceT> , provided by the IDBRequest$Typings extensiongetter/setter pair - onsuccess ↔ dynamic Function(Event)?
-
Available on IDBRequest<
MDN ReferenceT> , provided by the IDBRequest$Typings extensiongetter/setter pair - readyState → IDBRequestReadyState
-
Available on IDBRequest<
Returns "pending" until a request is complete, then returns "done".T> , provided by the IDBRequest$Typings extensionno setter - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$>(IDBRequestEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on IDBRequest<
Overload accessor: $1, $2T> , provided by the IDBRequest$Typings extensionno setter - result → T
-
Available on IDBRequest<
When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.T> , provided by the IDBRequest$Typings extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → Object
-
Available on IDBRequest<
Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.T> , provided by the IDBRequest$Typings extensionno setter - transaction → IDBTransaction?
-
Available on IDBRequest<
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.T> , provided by the IDBRequest$Typings extensionno 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