IDBRequest$Typings<T> extension
Properties
-
addEventListener
→ ({void Function<K$>(IDBRequestEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
-
Overload accessor: $1, $2
no setter
-
error
→ DOMException?
-
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
-
onerror
↔ dynamic Function(Event)?
-
MDN Reference
getter/setter pair
-
onsuccess
↔ dynamic Function(Event)?
-
MDN Reference
getter/setter pair
-
readyState
→ IDBRequestReadyState
-
Returns "pending" until a request is complete, then returns "done".
no setter
-
removeEventListener
→ ({void Function<K$>(IDBRequestEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
-
Overload accessor: $1, $2
no setter
-
result
→ T
-
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
-
source
→ Object
-
Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
no setter
-
transaction
→ IDBTransaction?
-
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