EntityDefinition<T> class Null safety

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. [...]
read-only, inherited
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.
read-only, inherited
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 non-existent 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