createIndex abstract method

Index createIndex(
  1. String name,
  2. Object keyPath, {
  3. bool? unique,
  4. bool? multiEntry,
})

Creates and returns a new Index object in the connected database.

Note that this method must be called only from a VersionChange transaction mode callback.

Implementation

Index createIndex(String name, Object keyPath,
    {bool? unique, bool? multiEntry});