MapEntityField<T extends TinkEntity> class
- Mixed-in types
Constructors
- MapEntityField({required String name, required T creator(dynamic), required dynamic onEntry(String key, T val), required dynamic doWrite(dynamic (TinkEntity, TinkEntitySet entities), TinkEntitySet entities)})
Properties
- creator ↔ T Function(dynamic)
-
Use fieldsFromDB(resolved) to get a map of the expected key value pairs
getter/setter pair
- doWrite ↔ dynamic Function(dynamic (TinkEntity, TinkEntitySet entities), TinkEntitySet entities)
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
getter/setter pairoverride-getter
- onEntry ↔ dynamic Function(String key, T val)
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
EntityEventSource src, dynamic value) → Future -
Deserialise this field into the given entity
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
TinkFieldWriter ser, TinkEntitySet entities) → dynamic -
Must return a value serialisable by json.
i.e. one of number, boolean, string, null, list or a map with string keys
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited