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, ByteData), 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, ByteData)
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
objectFromData(Store store, Pointer<Uint8> data, int size) → T
Shortcut that creates a ByteData view and passes it to objectFromFB.
toString() String
A string representation of this object.
inherited
type() Type

Operators

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