IndexColumn constructor

IndexColumn(
  1. String name, {
  2. bool ascending = true,
})

Creates a description of column indexing using the given parameters.

Implementation

IndexColumn(this.name, {this.ascending = true})
  : lcName = lowercaseAscii(name) {
  checkState(name.isNotEmpty, message: "IndexColumn.new: name is empty");
  checkState(
    !_reserved.contains(lcName),
    message: () => "IndexColumn refers to rowid-related column `$name`",
  );
}