Entity class

Implementers
Available Extensions

Constructors

Entity()

Properties

data Map<String, dynamic>
final
fields Map<String, FieldBase>
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Flag for empty content.
no setter
isNotEmpty bool
Flag for non-empty content.
no setter
parent FieldBase?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
rx Rx<Entity>
no setter

Methods

commit() → void
containsKey(String fieldName) bool
copy(Entity source) → void
field<T>(String name, {String? label, T? defaultValue}) Field<T>
fieldList<E extends Entity>(String name, {String? label}) ListField<E>
load(Map<String, dynamic> rawData, {bool ignoreNullField = false}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of<T extends Entity>() → T
onLoaded(void action()) → void
reset() → void
rollback() → void
Rollback to the last commit
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override
updateState() → void
updateValues(Map<String, dynamic> values) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String fieldName) → dynamic
operator []=(String fieldName, dynamic value) → void

Static Methods

removeFromParentList(Entity entity) → void