createIndex property

({IDBIndex Function(String name, Object keyPath, [IDBIndexParameters? options]) $1, IDBIndex Function(String name, Object keyPath, [IDBIndexParameters? options]) $2}) createIndex

Overload accessor: $1, $2

Implementation

({
  /// Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
  ///
  ///  Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
  ///
  ///  [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
  _i3.IDBIndex Function(
    _i2.String name,
    _i2.Object keyPath, [
    _i3.IDBIndexParameters? options,
  ]) $1,

  /// Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
  ///
  ///  Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
  ///
  ///  [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
  _i3.IDBIndex Function(
    _i2.String name,
    _i2.Object keyPath, [
    _i3.IDBIndexParameters? options,
  ]) $2,
}) get createIndex => (
      $1: _createIndex$1,
      $2: _createIndex$2,
    );