Model class final
One source definition for a physical table and its generated immutable row.
Create declarations with model; this type has no public constructor.
Use final Model employee = model(...) to break type inference cycles in
self references or mutually related models. Other declarations can infer
their type with final employee = model(...).
Model identity belongs to the declaration, independently of Record equality.
Properties
- fields → Record
-
Column declarations. Runtime Record access does not provide field discovery;
generation reads the original named fields and their source order.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → String
-
Explicit physical table name, independent of the Dart declaration name.
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