q_architecture library

Classes

BaseData<State>
BaseError<State>
BaseInitial<State>
BaseLoading<State>
BaseLoadingIndicator
BaseNotifier<DataState>
BaseState<State>
BaseWidget
ErrorResolver
Failure
Failure class that represents some kind of error that occurs in the app and being passed to UI
GlobalFailureNotifier
GlobalFailureNotifier can be used to show the failure without updating BaseNotifier state.
GlobalInfo
GlobalInfo class that represents some kind of info that occurs in the app and being passed to UI
GlobalInfoNotifier
GlobalInfoNotifier can be used to show any info updating BaseNotifier state.
GlobalLoadingNotifier
GlobalLoadingNotifier can be used to show the loading indicator without updating BaseNotifier 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
PaginatedError<T>
PaginatedList<T>
PaginatedListView<Entity, Param, Arg>
PaginatedLoaded<T>
PaginatedLoading<T>
PaginatedLoadingMore<T>
PaginatedNotifier<Entity, Param>
PaginatedState<T>
PaginatedStreamNotifier<Entity, Param>
QNotifier<T>
QNotifierBuilder<T>
A widget that builds a widget when a QNotifier changes state.
QNotifierConsumer<T>
QNotifierListener<T>
A widget that listens to a QNotifier and calls a listener when the state changes.
QNotifierObserver
Abstract interface for observing QNotifier lifecycle events

Enums

GlobalInfoStatus
GlobalInfoStatus enum that represents type of Global Info
PaginatedListViewType

Mixins

ErrorToFailureMixin
Executes received function within a try-catch block.

Functions

initQArchitecture({List<QNotifierObserver>? observers}) → void

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)
PaginatedEitherFailureOr<Entity> = Future<Either<Failure, PaginatedList<Entity>>>
PaginatedStreamFailureOr<Entity> = Stream<Either<Failure, PaginatedList<Entity>>>
PreHandleData<T> = bool Function(T data)
PreHandleFailure = bool Function(Failure failure)
RequestMapper<Request, Entity> = Request Function(Entity)
StreamFailureOr<T> = Stream<Either<Failure, T>>