ModelEntity class

ModelEntity describes an entity of a model and consists of instances of ModelProperty as well as an other entity information: id, name and last property id.

Constructors

ModelEntity(IdUid id, IdUid lastPropertyId, String name, List<ModelProperty> properties, ModelInfo _model)
ModelEntity.fromMap(Map<String, dynamic> data, {ModelInfo model, bool check: true})

Properties

id IdUid
read / write
idProperty ModelProperty
read / write
lastPropertyId IdUid
read / write
model ModelInfo
read-only
name ↔ String
read / write
properties ↔ List<ModelProperty>
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addProperty(ModelProperty prop) ModelProperty
containsUid(int searched) → bool
createProperty(String name, [int uid = 0]) ModelProperty
findPropertyByName(String name) ModelProperty
findPropertyByUid(int uid) ModelProperty
findSameProperty(ModelProperty other) ModelProperty
removeProperty(ModelProperty prop) → void
toMap() → Map<String, dynamic>
validate() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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