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, ModelHnswParams? hnswParams, String? externalName, int? externalType})
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
getter/setter pair
entity ↔ ModelEntity?
getter/setter pair
externalName ↔ String?
The optional ExternalName of this property.
getter/setter pair
externalType ↔ int?
The optional ExternalType of this property.
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
hnswParams ↔ ModelHnswParams?
The optional HnswIndex parameters of this property.
getter/setter pair
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
uidRequest → bool
final

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>
See ModelEntity.toMap for important details.
toString() → String
A string representation of this object.
override

Operators

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