createIndex abstract method

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

Creates a value, full-text or index search index with the given name for the documents in this collection.

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);