DataClassName constructor

const DataClassName(
  1. String? name, {
  2. Type? extending,
  3. List<Type>? implementing,
  4. String? companion,
})

Customize the data class name for a given table. By default, drift will attempt to use the view name followed by "Data" when naming data classes (e.g. a view named "UserView" will generate a data class called "UserViewData").

Implementation

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