DataClassName constructor

const DataClassName(
  1. String? name, {
  2. Type? extending,
  3. String? companion,
})

Customize the data class name for a given table. By default, drift will attempt to use the singular form of the table name when naming data classes (e.g. a table named "Users" will generate a data class called "User"). However, this doesn't work for irregular plurals and you might want to choose a different name, for which this annotation can be used.

Implementation

const DataClassName(this.name, {this.extending, this.companion});