ezbloc_flutter library Null safety

Classes

AutoPersistedBloc<S>
If bloc is not a singleton then tags must be provided to differentiate between different instances, otherwise different instances will overwrite each other
Bloc<S>
The central class behind this library [...]
BlocBuilder<S>
BlocContainer
Builds, saves and provides Bloc independent of the build tree [...]
BlocEventsPrinter<R extends Bloc<S>, S>
BlocListBuilder<R, S>
BlocMonitor<R extends Bloc<S>, S>
Callbacks which are sent by the blocs, can be used for debugging or side effects [...]
BlocProvider<T extends Bloc>
BlocProviderState<T extends Bloc>
HivePersistenceService
ListBloc<R, S>
PersistedBloc<S>
PersistenceService
TypeAndArg
Acts as a key for bloc container cache [...]

Extensions

BlocExtensions
ContextX

Functions

testBloc<R extends Bloc<S>, S>(dynamic description, {FutureVoidCallback? setup, required BlocTestBloc<R> bloc, BlocCallback<R>? expectBefore, BlocCallback<R>? expectAfter, required StreamMatcher expectedStates, BlocCallback<R>? job, BlocTestTransform<R, S, dynamic>? transform, Duration timeout = const Duration(minutes: 1), bool testDistinctStatesOnly = false}) → void
Utility function which abstracts over a dart test to ease off bloc testing [...]

Enums

BlocEventType

Typedefs

BlocCallback<R>(R) Future<void>
BlocListener(BlocEventType type) → void
BlocTestBloc<R>() Future<R>
BlocTestTransform<R, S, T>(R, S) → T
BlocTestVoidCallback() → void
BlocWithArgBuilder<T>(BuildContext? context, dynamic arg) → T
Takes context and arg, returns a Bloc [...]
DataBuilder<T>(BuildContext context, T data) Widget
This function takes a context and data of type T and returns a widget [...]
Deserializer<T>(dynamic json) → T
ErrorBuilder(BuildContext context, StateError error) Widget
This function takes a context and an error and returns a widget [...]
FutureVoidCallback() Future<void>
PersistenceServiceBuilder(String name) PersistenceService
ToWidget<T>(BuildContext, T) Widget