Entity class

Marks a class as a database entity (table).

Constructors

Entity({String? tableName, List<Index> indices = const [], List<ForeignKey> foreignKeys = const [], List<String> primaryKeys = const [], bool withoutRowid = false})
Marks a class as a database entity (table).
const

Properties

foreignKeys List<ForeignKey>
List of ForeignKey constraints on this entity.
final
hashCode int
The hash code for this object.
no setterinherited
indices List<Index>
List of indices on the table.
final
primaryKeys List<String>
List of primary key column names.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String?
The table name of the SQLite table.
final
withoutRowid bool
Whether the table is a "WITHOUT ROWID table".
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited