Entity constructor

const Entity({
  1. String? tableName,
  2. List<Index>? indices = const [],
  3. List<ForeignKey>? foreignKeys = const [],
  4. List<String>? primaryKeys = const [],
  5. bool? withoutRowid = false,
})

Marks a class as a database entity (table).

Implementation

const Entity({
  this.tableName,
  this.indices = const [],
  this.foreignKeys = const [],
  this.primaryKeys = const [],
  this.withoutRowid = false,
});