ModelEntity class

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

no setter
constructorParams List<String>
getter/setter pair
flags int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id IdUid
getter/setter pair
idProperty ModelProperty
no setter
lastPropertyId IdUid
getter/setter pair
model ModelInfo
no setter
name String
getter/setter pair
properties List<ModelProperty>
no setter
relations List<ModelRelation>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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 nonexistent method or property is accessed.
inherited
removeProperty(ModelProperty prop) → void
removeRelation(ModelRelation rel) → void
toMap({bool forModelJson = false}) Map<String, dynamic>
Convert this to a string map. Set forModelJson to exclude some keys that should not be part of the model JSON file.
toString() String
A string representation of this object.
override
validate() → void

Operators

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