EntityDefinition<T> class

Used by the generated code as a container for model loading callables

Constructors

EntityDefinition({required ModelEntity model, required int objectToFB(T, Builder), required T objectFromFB(Store, Uint8List), required int? getId(T), required void setId(T, int), required List<ToOne> toOneRelations(T), required Map<RelInfo, ToMany> toManyRelations(T)})
const

Properties

getId int? Function(T)
final
hashCode int
The hash code for this object.
no setterinherited
model ModelEntity
final
objectFromFB → T Function(Store, Uint8List)
final
objectToFB int Function(T, Builder)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setId → void Function(T, int)
final
toManyRelations Map<RelInfo, ToMany> Function(T)
final
toOneRelations List<ToOne> Function(T)
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
type() Type

Operators

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