datacontext
library
Typedefs
-
DataClassBuilder<T extends DataClass>
= T Function()
-
This function definition will be used to store a procedure that instantiates the dataclass in question
-
DataClassDeserializer<T extends DataClass>
= T Function(Map<String, dynamic>)
-
This function definition will be used to store a procedure that deserializes the dataclass in question
-
DataClassSerializer<T extends DataClass>
= Map<String, dynamic> Function(T)
-
This function definition will be used to store a procedure that serializes the dataclass in question
-
IdentifierGetter<T extends DataClass>
= dynamic Function(T dataclass)
-
This function type will be used to point out which property of a DataClass should be used as an unique identifier
Ex.:
(data) => data.id
-
OnReceive
= void Function(Response)
-
This function definition is used to store a procedure that will listen to every API response
-
OnSend
= void Function(APIRequest)
-
This function definition is used to store a procedure that will listen to every API request