ModelEntity class Null safety

ModelEntity describes an entity of a model.

Constructors

ModelEntity({required IdUid id, required String name, required IdUid lastPropertyId, required int flags, required List<ModelProperty> properties, required List<ModelRelation> relations, required List<ModelBacklink> backlinks})
ModelEntity.create(IdUid id, String _name, ModelInfo? _model, {bool uidRequest = false})
ModelEntity.fromMap(Map<String, dynamic> data, {ModelInfo? model, bool check = true})

Properties

read-only
constructorParams List<String>
read / write
flags int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id IdUid
read / write
idProperty ModelProperty
read-only
lastPropertyId IdUid
read / write
model ModelInfo
read-only
name String
read / write
nullSafetyEnabled bool
read / write
properties List<ModelProperty>
read-only
relations List<ModelRelation>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uidRequest bool
final

Methods

containsUid(int searched) bool
createProperty(String name, [int uid = 0]) ModelProperty
createRelation(String name, [int uid = 0]) ModelRelation
findPropertyByName(String name) ModelProperty?
findSameProperty(ModelProperty other) ModelProperty?
findSameRelation(ModelRelation other) ModelRelation?
hasFlag(int flag) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeProperty(ModelProperty prop) → void
removeRelation(ModelRelation rel) → void
toMap({bool forModelJson = false}) Map<String, dynamic>
toString() String
A string representation of this object. [...]
override
validate() → void

Operators

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