standard_repositories library

A Very Good Project created by Very Good CLI.

Classes

MultiRepository<T>
Repository<T>
RepositoryCache<T>
An object that can cache repository values for quick retrieval, ideally on device

Mixins

FetcherRepository<T>
A repository that fetches it's data when listened to
HiveRepositoryCache<T>
A RepositoryCache that stores values on device with Hive

Typedefs

FromJson<T> = T Function(Map<String, dynamic> json)
A function type that converts a JSON map into an object of type T.
TestFunction<T> = bool Function(T object)
ToJson<T> = Map<String, dynamic> Function(T object)
A function type that converts an object of type T into a JSON map.
UniqueEvent<T> = ({T event, bool fetched, int id})