q_architecture library

Classes

ApiErrorResolver
An implementation of the ErrorResolver interface.
AutoDisposeFamilySimpleNotifier<T, Arg>
AutoDisposeSimpleNotifier<T>
BaseLoadingIndicator
BaseWidget
ErrorResolver
Failure
Failure class that represents some kind of error that occurs in the app and being passed to UI
FamilySimpleNotifier<T, Arg>
GlobalInfo
GlobalInfo class that represents some kind of info that occurs in the app and being passed to UI
PaginatedList<T>
PaginatedListView<Entity, Param>
SimpleNotifier<T>
SimpleStateNotifier<T>

Enums

GlobalInfoStatus
GlobalInfoStatus enum that represents type of Global Info
PaginatedListViewType

Mixins

ErrorToFailureMixin
Executes received function within a try-catch block.

Properties

globalFailureProvider → StateProvider<Failure?>
globalFailureProvider can be used to show the failure without updating BaseStateNotifier state.
final
globalInfoProvider → StateProvider<GlobalInfo?>
globalInfoProvider can be used to show any info updating BaseStateNotifier state.
final
globalLoadingProvider → StateProvider<bool>
globalLoadingProvider can be used to show the loading indicator without updating BaseStateNotifier state. The entire app is wrapped in BaseWidget and BaseLoadingIndicator can be shown above entire app by simply calling showGlobalLoading. To hide BaseLoadingIndicator simply call clearGlobalLoading
final

Typedefs

EitherFailureOr<T> = Future<Either<Failure, T>>
EntityMapper<Entity, Response> = Entity Function(Response)
FormMapper<Entity> = Entity Function(Map<String, dynamic>)
FormWithOptionMapper<Entity, Option> = Entity Function(Map<String, dynamic>, Option)
RequestMapper<Request, Entity> = Request Function(Entity)
StreamFailureOr<T> = Stream<Either<Failure, T>>