ModelProperty class

ModelProperty describes a single property of an entity.

Constructors

ModelProperty({required IdUid id, required String name, required int type, required int flags, IdUid? indexId, String? relationTarget})
ModelProperty.create(IdUid id, String? name, int? type, {int flags = 0, String? indexId, ModelEntity? entity, String? dartFieldType, String? relationTarget})
ModelProperty.fromMap(Map<String, dynamic> data, ModelEntity? entity)

Properties

dartFieldType String
getter/setter pair
entity ModelEntity?
getter/setter pair
fieldIsNullable bool
no setter
fieldIsReadOnly bool
getter/setter pair
fieldType String
no setter
flags int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id IdUid
getter/setter pair
indexId IdUid?
getter/setter pair
isRelation bool
no setter
isSigned bool
no setter
name String
getter/setter pair
relationTarget String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
getter/setter pair

Methods

hasFlag(int flag) bool
hasIndexFlag() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeIndex() → void
toMap({bool forModelJson = false}) Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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