no_bloc library

Support for doing something awesome.

More dartdocs go here.

Classes

AutoPersistedBloc<R, S>
If bloc is not a singleton then tags must be provided to differential between different instances, otherwise different instances will overwrite each other
Bloc<R, S>
The central class behind this library [...]
BlocMonitor<T>
Callbacks which are sent by the blocs, can be used for debugging or side effects [...]
HivePersistenceService
ListOp<T>
PersistedBloc<R, S>
PersistenceService

Functions

implementsEquality(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<R, S>, S>(dynamic description, {FutureVoidCallback setup, BlocTestBloc<R> bloc, BlocCallback<R> expectBefore, BlocCallback<R> expectAfter, StreamMatcher expectedStates, BlocCallback<R> job, BlocTestTransform<S, dynamic> transform, Duration timeout}) → void
Utility function which abstracts over a dart test to ease off bloc testing [...]
@isTest

Enums

ListOpType

Typedefs

BlocCallback<R>(R) Future<void>
BlocTestBloc<R>() Future<R>
BlocTestTransform<S, T>(S) → T
BlocTestVoidCallback() → void
Deserializer<T>(dynamic json) → T
FutureVoidCallback() Future<void>
PersistenceServiceBuilder(String name) PersistenceService