cubit/resource_cubit library

Classes

ResourceCubit<T>
This abstracts calling repository and handling result.

Typedefs

OnExceptionCallback = void Function(String)
OnSuccessCallback<T> = Future<void> Function(T result)
Function which will be invoked after successful mutation/query
QueryExecutor<T> = Future<T> Function()
This can be both query and mutation since they return similar result.
ResultParser<T> = T Function(T result)
Parser must return expected result.