ModelProperty class Null safety

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, bool uidRequest = false})
ModelProperty.fromMap(Map<String, dynamic> data, ModelEntity? entity)

Properties

dartFieldType String
read / write
entity ModelEntity?
read / write
fieldIsNullable bool
read-only
fieldIsReadOnly bool
read / write
fieldType String
read-only
flags int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id IdUid
read / write
indexId IdUid?
read / write
isRelation bool
read-only
isSigned bool
read-only
name String
read / write
relationTarget String?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type int
read / write
uidRequest bool
final

Methods

hasFlag(int flag) bool
hasIndexFlag() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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