indexes property
List<IndexCommand>
get
indexes
Index commands generated from the fluent API and drops.
Implementation
List<IndexCommand> get indexes {
final commands = <IndexCommand>[];
final seenNames = <String>{};
for (final entry in _indexes) {
commands.add(IndexCommand.add(entry.definition));
seenNames.add(entry.definition.name);
}
for (final definition in _buildFluentIndexDefinitions()) {
if (seenNames.add(definition.name)) {
commands.add(IndexCommand.add(definition));
}
}
commands.addAll(_droppedIndexes.map(IndexCommand.drop));
return commands;
}