implementing property
A list of classes that the drift-generated row class should implement.
Listing classes here can be useful when you have several tables with the same columns, as it allows extracting them into common interfaces shared between multiple row classes:
abstract interface class HasCreationTimes {
DateTime get createdAt;
}
@DataClassName.custom(implementing: [HasCreationTimes])
class Accounts extends Table {
// ...
DateTimeColumn get createdAt => dateTime()
.withDefault(currentDateAndTime)();
}
Implementation
final List<Type>? implementing;