IDBObjectStore class
This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.)
- Available extensions
- Annotations
- 
    - @JS.new()
- @staticInterop
 
Constructors
- IDBObjectStore()
- 
          
            factory
Properties
- 
  add
  ↔ IDBRequest<Object> Function([dynamic, Object?])
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- autoIncrement → bool
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension Returns true if the store has a key generator, and false otherwise.no setter
- clear ↔ IDBRequest Function()
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- 
  count
  ↔ IDBRequest<num> Function([Object?])
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- createIndex → ({IDBIndex Function(String name, Object keyPath, [IDBIndexParameters? options]) $1, IDBIndex Function(String name, Object keyPath, [IDBIndexParameters? options]) $2})
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension Overload accessor: $1, $2no setter
- delete ↔ IDBRequest Function(Object)
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- deleteIndex ↔ void Function(String)
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- get ↔ IDBRequest Function(Object)
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- 
  getAll
  ↔ IDBRequest<List> Function([dynamic, num?])
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- 
  getAllKeys
  ↔ IDBRequest<List< Function([dynamic, num?])Object> >
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- 
  getKey
  ↔ IDBRequest<Object?> Function(Object)
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- index ↔ IDBIndex Function(String)
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- indexNames → DOMStringList
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension Returns a list of the names of indexes in the store.no setter
- keyPath → Object
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension Returns the key path of the store, or null if none.no setter
- name ↔ String
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension Returns the name of the store.getter/setter pair
- 
  openCursor
  ↔ IDBRequest<IDBCursorWithValue?> Function([dynamic, IDBCursorDirection?])
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- 
  openKeyCursor
  ↔ IDBRequest<IDBCursor?> Function([dynamic, IDBCursorDirection?])
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- 
  put
  ↔ IDBRequest<Object> Function([dynamic, Object?])
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension getter/setter pair
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- transaction → IDBTransaction
- 
      Available on IDBObjectStore, provided by the IDBObjectStore$Typings extension Returns the associated transaction.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