Model constructor

const Model({
  1. required String name,
  2. String? dbName,
  3. required Iterable<Field> fields,
  4. required Iterable<Iterable<String>> uniqueFields,
  5. required Iterable<UniqueIndex> uniqueIndexes,
  6. String? documentation,
  7. PrimaryKey? primaryKey,
})

Implementation

const factory Model({
  required String name,
  String? dbName,
  required Iterable<Field> fields,
  required Iterable<Iterable<String>> uniqueFields,
  required Iterable<UniqueIndex> uniqueIndexes,
  String? documentation,
  PrimaryKey? primaryKey,
}) = _Model;