Model class Models

Used to annotate a class as a database model

Constructors

Model({List<Symbol> views = const [], List<TableIndex> indexes = const [], String? tableName, ModelMeta? meta})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
indexes List<TableIndex>
A list of indexes that should be created for this table.
final
meta ModelMeta?
Metadata for the generated classes in order to use serialization for these classes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String?
A custom name for this table.
final
views List<Symbol>
The list of views this model defined.
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

Constants

defaultView → const Symbol
The default view of a model.