SearchColumn constructor
Creates a description of an FTS column using the given parameters.
If json is true, then unindexed must also be true.
The name argument must not match any of the following reserved names:
columnRowId, columnKeyId, or columnRank.
Implementation
SearchColumn(this.name, {this.unindexed = false, this.json = false})
: lcName = lowercaseAscii(name) {
checkState(name.isNotEmpty, message: "SearchColumn.new: name is empty");
checkState(
!_reserved.contains(lcName),
message: () => "SearchColumn: name `$name` is reserved",
);
checkState(
!json || unindexed,
message: () =>
"SearchColumn[name=$name] stored as JSON must be unindexed",
);
}