IndexDef constructor

IndexDef(
  1. String name,
  2. String column, {
  3. bool unique = false,
  4. String? whereSql,
  5. String? exprSql,
  6. List<String>? columns,
  7. List<String>? collations,
})

Implementation

IndexDef(this.name, this.column,
    {this.unique = false,
    this.whereSql,
    this.exprSql,
    List<String>? columns,
    List<String>? collations})
    : columns = columns ?? [column],
      collations = collations ??
          List<String>.filled((columns ?? [column]).length, 'BINARY');