EntityField class
- Mixed-in types
Constructors
- EntityField({required String name, required Future doRead(EntityEventSource src, dynamic raw), required dynamic doWrite(dynamic (TinkEntity, TinkEntitySet entities), TinkEntitySet entities)})
Properties
- doRead ↔ Future Function(EntityEventSource src, dynamic raw)
-
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
- 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