createIndex abstract method

FutureOr<void> createIndex(
  1. String name,
  2. Index index
)

Creates a value or full-text search index with the given name.

The name can be used for deleting the index. Creating a new different index with an existing index name will replace the old index; creating the same index with the same name is a no-op.

Implementation

FutureOr<void> createIndex(String name, Index index);