datacontext library

Classes

APIRequest
DataClass
DataContext
DataFetcher
DataOption<T extends DataClass>
DataPaginationOptions
DataSet<T extends DataClass>
This class provides all functionality related to sending and fetching to and from the API and manages all data loaded as a repository
DataStorage<Model extends DataClass>
This class stores typed data that comes from the API or that was added by the user
FailWidget
IsNullWidget<T>
LoadStatusWidget

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

Exceptions / Errors

MalformedJsonException