flutter_remoter library

Remoter aims to simplify handling asynchronous operations and revalidating them. Learn more

Classes

BaseRemoterData<T>
Represents abstraction for RemoterData and PaginatedRemoterData
Default<T>
Used to distinguish default parameters and user defined parameters
Nullable<T>
Used to distinguish omitted parameter and null
PaginatedQueryFunctions<T>
Functions are saved on RemoterClient when widget mounts RemoterClient uses these to fetch following pages pages represents all pages in current query Query should have RemoterStatus.success status to be able to call these functions
PaginatedRemoterData<T>
Represents data fetched for PaginatedRemoterQuery T represents the type of data in list of pages fetched in the query
PaginatedRemoterQuery<T>
Used for data that has multiple pages or "infinite scroll" like experience. If T generic is used, all RemoterClient method calls should be called with T, otherwise runtime type casting error will be thrown
RemoterClient
Client that processes query actions and holds cache data
RemoterData<T>
Represents data fetched for RemoterQuery T represents the type of data fetched in the query
RemoterMutation<T, S>
Used to simplify handling asynchronous calls T represents type of the value execute function returns S represents type of the value passed to mutate function which will be passed to execute function as parameter
RemoterMutationData<T>
Represents class for mutation object
RemoterMutationUtils<T, S>
Represents class for helper methods which is passed to builder function for RemoterMutation
RemoterOptions
Defines options for RemoterClient, RemoterQuery and PaginatedRemoterQuery
RemoterPaginatedUtils<T>
Represents class of helper methods which is passed to builder function for PaginatedRemoterQuery These function doesn't add any functionality to RemoterClient methods
RemoterParam<T>
Represents parameter object passed to PaginatedRemoterQuery.execute
RemoterProvider
Creates provider with RemoterClient so that a single instance of RemoterClient can be accessed from children
RemoterQuery<T>
Used for fetching remote data, revalidating it and etc. If T generic is used, all RemoterClient method calls should be called with T, otherwise runtime type casting error will be thrown
RemoterQueryState<T>
RemoterQueryUtils<T>
Represents class of helper methods which is passed to builder function for RemoterQuery These function doesn't add any functionality to RemoterClient methods

Enums

RemoterParamType
Used to determine RemoterParam type
RemoterStatus
Represents status for query idle is used only if query is disabled