indexCreate method

IndexCreate indexCreate(
  1. dynamic indexName, [
  2. dynamic indexFunction,
  3. Map? options
])

Implementation

IndexCreate indexCreate(indexName, [indexFunction, Map? options]) {
  if (indexFunction == null && options == null) {
    return IndexCreate(this, indexName);
  } else if (indexFunction != null && indexFunction is Map) {
    return IndexCreate(this, indexName, indexFunction);
  }
  return IndexCreate.withIndexFunction(
      this, indexName, _funcWrap(indexFunction, 1), options);
}