no_bloc library
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
- BlocEventsPrinter
-
BlocMonitor<
T> - Callbacks which are sent by the blocs, can be used for debugging or side effects
- HivePersistenceService
-
ListOp<
T> -
PersistedBloc<
S> - PersistenceService
Enums
Functions
-
isValueType(
dynamic value) → bool - Just a utility function to make sure if the state type implements equality (by default dart classes only support referential equality).
-
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<S, dynamic> ? transform, Duration timeout = const Duration(seconds: 1)}) → void - Utility function which abstracts over a dart test to ease off bloc testing
Typedefs
-
BlocCallback<
R> = Future< void> Function(R) -
BlocTestBloc<
R> = Future< R> Function() -
BlocTestTransform<
S, T> = T Function(S) - BlocTestVoidCallback = void Function()
-
Deserializer<
T> = T Function(dynamic json) -
FutureVoidCallback
= Future<
void> Function() - PersistenceServiceBuilder = PersistenceService Function(String name)