flutter_gb_stack_base
library
Classes
-
ActorDependantBloc<Event extends ActorDependantEvent, State extends Object>
-
A utility that let´s you auto subscribe to multiple ListenableBloc blocs and act on their events to perform new logic based on it
-
ActorDependantEvent
-
-
ActorDependencyDefinition<DependencyBloc extends ListenableBloc, DependencyBlocEvent, ActorDependantEvent, ActorDependantState>
-
-
ActorGeneralDependencyDefinition<DependencyBloc extends ListenableBloc, DependencyBlocEvent, ActorDependantEvent, ActorDependantState>
-
-
ActorRepoServiceDependencyDefinition<DependencyBloc extends RepoServiceBloc<Enum>, GroupEvent, ActorDependantEvent, ActorDependantState>
-
-
AppEnvironment
-
-
ApplicationConsoleOutput
-
-
BasicHttpRequestRepoServiceConfiguration<ResultDataType, ExecutorParams extends Object?>
-
-
BlocEventListener<B extends ListenableBloc<Event, dynamic>, Event>
-
This Helper Widget helps you subscribe to the stream of
Event
s of a ListenableBloc which
is also provided in this package
It automatically subscribes and disposes of when this widget is no longer present in the tree
-
CacheableItem<T>
-
-
ConfigurationNotFoundFailure<GroupEvent extends Enum>
-
-
ContextProviderService
-
-
ContextProviderServiceImpl
-
-
EnvironmentProvider<T>
-
-
Failure
-
-
FailuresGroup
-
-
GenericBlocRepoService
-
-
GenericBlocRepoServiceImpl
-
-
GenericRepoServiceConfiguration<ResultDataType, ExecutorParams extends Object?>
-
-
GroupStateNotFoundFailure<GroupEvent extends Enum>
-
-
HttpClientImpl
-
-
HttpClientMock
-
-
HttpFromBaseRequestRepoServiceConfiguration<ResultDataType, ExecutorParams extends Object?>
-
-
IHttpClient
-
-
InternetConnectionIssueFailure
-
-
ListenableBloc<Event, State>
-
-
LoadedData<T>
-
-
LoadedDataBuilder<T>
-
-
RepoServiceBase
-
-
RepoServiceBaseImpl
-
-
RepoServiceBloc<GroupEvent extends Enum>
-
RepoServiceBloc Is a Helper class intended to be extended by you and help get rid of
a lot of boilerplate that otherwise you would be required to implement yourself
-
RepoServiceBlocBuilder<B extends RepoServiceBloc<GroupEvent>, GroupEvent extends Enum>
-
RepoServiceBlocBuilder Helper Widget lets you build your UI based on state changes of a RepoServiceBloc
Take into account that you may not have all the
GroupEvent
states persisted in the RepoServiceBlocState state
if the bloc parameter is omitted, BlocBuilder
will automatically perform a lookup using BlocProvider
and the current BuildContext.
-
RepoServiceBlocEvent<GroupEvent extends Enum>
-
The events dispatched by the RepoServiceBloc bloc
-
RepoServiceBlocListener<B extends RepoServiceBloc<GroupEvent>, GroupEvent extends Enum>
-
RepoServiceBlocListener This Helper Widget helps you subscribing to the stream of RepoServiceBlocEvents of a RepoServiceBloc which
is also provided in this package
It automatically subscribes and disposes when this widget is no longer present in the tree
This widget composes over BlocEventListener widget
It also provides you with the ability of filtering just the events that are dispatched for a specific
GroupEvent
-
RepoServiceBlocState<GroupEvent extends Enum>
-
-
RepoServiceConfiguration<ResultDataType, ExecutorParams extends Object?>
-
-
RepoServiceEventHandler<GroupEvent extends Enum>
-
-
RepoServiceGroupBlocBuilder<B extends RepoServiceBloc<GroupEvent>, GroupEvent extends Enum, T>
-
RepoServiceGroupBlocBuilder Helper Widget lets you build your UI based on state changes of a RepoServiceBloc<GroupEvent>
This widget is similar to RepoServiceBlocBuilder but it only provides you access to a slice of the RepoServiceBlocState
if the bloc parameter is omitted,
BlocBuilder
will automatically perform a lookup using BlocProvider
and the current BuildContext.
-
RepoServiceStubDefinition
-
-
ServerFailure
-
-
SharedPreferencesMock
-
-
UnauthorizedServerFailure
-
-
UnknownFailure
-
-
User
-
-
UserModel
-
-
UserModelBuilder
-
Functions
-
deepMergeMap(Map<String, dynamic> a, Map<String, dynamic> b)
→ Map<String, dynamic>
-
-
delayed(Function fn, {Duration duration = const Duration(milliseconds: 100)})
→ dynamic
-
-
getStackBaseDefaultLogger()
→ Logger
-
-
queryMerge(Map<String, dynamic>? queryA, Map<String, dynamic>? queryB)
→ Map<String, dynamic>
-
-
repoServiceBlocEventGroupTestUtil<Bloc extends RepoServiceBloc<GroupEvent>, GroupEvent extends Enum, DataType, ExecutorParams>(Bloc repoServiceBlocFn(), {ExecutorParams? eventParams, String? eventKey, required GroupEvent groupEvent, required RepoServiceStubDefinition stub, void setUp(Bloc bloc)?, void verifier(List<RepoServiceBlocState<GroupEvent>> states, Either<Failure, DataType?>? executorResult)?, TypeMatcher<BaseRequest>? requestMatcher})
→ Future<void>
-
Example
-
repoServiceTestGenericUtil<T extends RepoServiceBase, DataType>(T repoService(), {void setUp()?, required Future<Either<Failure, DataType?>> act(T), required void verify(Either<Failure, DataType?> result)})
→ Future<void>
-
-
repoServiceTestHttpUtil<T extends RepoServiceBase, DataType>(T repoService(), {void setUp(HttpClientMock clientMock)?, required Future<Either<Failure, DataType>> act(T), required dynamic verify(HttpClientMock clientMock, Either<Failure, DataType> response), required String responseStubValue, int? statusCodeStubValue, })
→ Future<void>
-
Creates a new RepoServiceBase-specific test case with the given
repoService
.
-
userModelMock()
→ UserModel
-
Typedefs
-
DataOrFailureHandleDefault<T>
= Future<Either<Failure, T>> Function(Left<Failure, T> left(Failure failure), Right<Failure, T> right(T result))
-
-
DataOrFailureHandleException<T>
= Either<Failure, T>? Function(Object error, Left<Failure, T> left(Failure failure), Right<Failure, T> right(T response), StackTrace stackTrace)
-
-
DataOrFailureHandleResponse<T>
= FutureOr<Either<Failure, T>> Function(Response response, Left<Failure, T> left(Failure failure), Right<Failure, T> right(T response))
-
-
DependencyHandlerFunction<DependencyBlocEvent, ActorDependantEvent, ActorDependantState>
= FutureOr<void> Function(DependencyBlocEvent dependencyBlocEvent, Emitter<ActorDependantState> emit, ActorDependantState state, void add(ActorDependantEvent event))
-
-
GenericMapperFunction<ExecutorParams extends Object?, ResultDataType>
= Future<Either<Failure, ResultDataType>> Function(ExecutorParams params)
-
-
RepoServiceEventHandlerFn<GroupEvent extends Enum, State>
= void Function(RepoServiceBlocEvent<GroupEvent> event, Emitter<State> emit, State state, void execute(GroupEvent group, {String? key, dynamic params}))
-
-
RequestMapperFunction<ExecutorParams extends Object?>
= FutureOr<BaseRequest> Function(ExecutorParams params)
-
-
UriMapperFunction<ExecutorParams extends Object?>
= FutureOr<Uri> Function(ExecutorParams params)
-