rx_bloc library

Classes

ErrorWithTag
Just a simple container of ErrorWithTag.exception and ErrorWithTag.tag
LoadingWithTag
Just a simple container of LoadingWithTag.loading and LoadingWithTag.tag
Result<T>
A generic Result class used for converting a future to a stream by AsResultStream.asResultStream.
ResultError<T>
A generic Result class used for converting a future to a stream.
ResultLoading<T>
A generic Result class used for converting a future to a stream.
ResultSuccess<T>
A generic Result class used for converting a future to a stream.
RxBloc
BloC class that the generator will be looking for.
RxBlocBase
A base class that handles all common BloC functionality such as
RxBlocEvent
When working with events, most of the time, they are used to publish changes to the bloc that do not require any initial state. However, there may be some times when you are required to set the state to a custom value or to explicitly annotate the event. All this can be done with the @RxBlocEvent() annotation.
RxBlocIgnoreState
There might be some situations where you would need to define custom state, where all generated boilerplate it would be redundant. For that case just annotate the property of the states class with @RxBlocIgnoreState() and the generator won't generate any boilerplate code for it. A good example of this is errors or loading states as shown here.
RxBlocTypeBase

Enums

RxBlocEventType
Subject type of the event. It could be either RxBlocEventType.behaviour or RxBlocEventType.publish

Extensions

AsResultStream on Stream<T>
Result utility extension methods.
Bind on Stream<T>
Stream binder utilities
FutureAsResultStream on Future<T>
Future asResultStream utilities
HandleByRxBlocBase on Stream<Result<T>>
Stream loading and error handlers
ResultErrorStream on Stream<ResultError<T>>
ResultErrorStream utility extension methods.
ResultMap on Result<E>
ResultMapStream on Stream<Result<E>>
ResultMapStreamX on Stream<E>
ResultStream on Stream<Result<T>>
ResultStream utility extension methods.