index method

void index(
  1. dynamic field, [
  2. String? name,
  3. String? algorithm
])

Implementation

void index(dynamic field, [String? name, String? algorithm]) {
  assert(field is String || field is List<String>);
  indicesToCreate.add(Index(
    this.name,
    name,
    field is String ? [field] : field,
  ));
}