Index.ascending constructor

Index.ascending(
  1. String name,
  2. List<String> columns
)

Construct a new index with the specified column names.

Implementation

factory Index.ascending(String name, List<String> columns) {
  return Index(name,
      columns.map((e) => IndexedColumn.ascending(e)).toList(growable: false));
}