bloc_flux library

Support for doing something awesome.

More dartdocs go here.

Classes

Action<T>
Indicates that something that could potentially affect the application state. [...]
BaseDispatcher
The interface of the most basic dispatcher.
Bloc
Bloc interface. Extend this class to create an interface for a BlocImpl. [...]
BlocImpl
The implementation for Bloc. Extend this class to create a basic Bloc. [...]
BlocStateAction
Dispatch an instance of this Action to set the state of the StateBloc. [...]
BlocStateValueAction
Dispatch an instance of this Action to communicate a state change in a StateBloc. [...]
CompositeSerializers
A composite structure for the Serializers class. [...]
CompositeSerializersBuilder
The builder for CompositeSerializers.
Dispatcher
Dispatcher interface. [...]
DispatcherImpl
Dispatcher implementation. [...]
ErrorAction<T, E>
A Decorator for the Action class which indicates the request Action resulted in an error represented by error. [...]
Field<T>
A single unit of output from a Bloc. [...]
FieldID
A unique identifer for a Field/FieldImpl. [...]
FieldIDBuilder
FieldImpl<T>
The implementation for Field.
FieldQuery
This class represents a request to recieve updates when the value of any of the specified Fields change. [...]
FieldQueryAction
Dispatch an instance of this Action to register a FieldQuery. [...]
FieldQueryBuilder
FieldValueAction<T>
A ValueAction indicating an update to a Field that a FieldQuery has been registered for. [...]
FieldView<T>
A wrapper for Field that does not expose memebers that should not be accessed outside of a Bloc.
InternalAction<T>
Marker interface indicating an Action was dispatched from another Bloc. [...]
QueryAction<T>
Marker interface indicating an Action is related to the StateQuery or FieldQuery functionality. [...]
StateBloc
StateBloc interface. Extend this class to create an interface for a StateBlocImpl. [...]
StateBlocImpl
The implementation for StateBlocImpl. [...]
StateBlocState
Contains the StateFieldState of all of the registered StateFields in the StateBloc with a Bloc.key equal to blocKey. [...]
StateBlocStateBuilder
StateField<T>
A single unit of output from a StateBloc with added state management capabilities whe registered with a StateBlocImpl. [...]
StateFieldImpl<T>
A single unit of output from a StateBloc with added state management capabilities whe registered with a StateBlocImpl. [...]
StateFieldState<T>
Wraps the last output of the StateField with StateField.fieldID equal to fieldID. [...]
StateFieldStateBuilder<T>
StateQuery
Query the StateBlocState of a StateBloc. [...]
StateQueryAction
Dispatch an instance of this Action to register a StateQuery. [...]
StateQueryBuilder
ValueAction<T>
An Action indicating a new value from a Field. [...]
ValueBloc
ValueBloc interface. Extend this class to create an interface for a ValueBlocImpl. [...]
ValueBlocImpl
The implementation for ValueBloc. [...]

Properties

blocFluxSerializers CompositeSerializers
Default Serializers for bloc_flux package. [...]
read-only
dispatcher Dispatcher
Global Dispatcher. [...]
final
standardJsonSerializers CompositeSerializers
Standard JSON format Serializers. [...]
read-only

Functions

addBuilderFactory(FullType specifiedType, Function function) → void
Adds a builder factory to blocFluxSerializers and standardJsonSerializers. [...]
addPlugin(SerializerPlugin plugin) → void
Adds a SerializerPlugin to blocFluxSerializers and standardJsonSerializers [...]
addSerializer(Serializer serializer) → void
Adds a Serializer to blocFluxSerializers and standardJsonSerializers. [...]
addSerializers(Serializers serializers) → void
Adds a Serializers to blocFluxSerializers and standardJsonSerializers. [...]
getDispatcher(String key, { bool overwrite: false }) Dispatcher
Get a Dispatcher with key as a unique identifier. [...]
getNestedTypes(FullType fullType) → List<Type>
Recursivly build List of all Types contained with FullTypes nested in fullType.
isSerializable({Type type, Iterable<Type> types, FullType fullType, bool shouldThrow: false bool objectIsSerializable: false }) → bool
Checks if the specified types can be serialized using blocFluxSerializers. [...]

Typedefs

CompositeUpdates(CompositeSerializersBuilder builder) CompositeSerializersBuilder

Exceptions / Errors

InvalidStateBlocStateError
Error thrown when a StateBlocState blocState provided to stateBloc is invalid.