StateBloc class

StateBloc interface. Extend this class to create an interface for a StateBlocImpl.

See StateBlocImpl for more information.

Inheritance
Implementers

Constructors

StateBloc()

Properties

actionObservable Observable<Action>
The Observable carrying Actions from the Dispatcher.
@protected, read-only, inherited
closed bool
True if this Bloc has been closed or actionObservable has finished.
read-only, inherited
fieldIDs Iterable<FieldID>
FieldIDs for all registered Fields.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
key String
A unique identifer for this Bloc.
read-only, inherited
outputObservable Observable<Action>
{template output_observable} The Observable carrying Actions from within this ValueBlocImpl that need to be dispatched. {@endtemplate}
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state StateBlocState
Gets the current StateBlocState of this StateBloc.
read-only
stateFieldIDs Iterable<FieldID>
FieldIDs for all registered StateFields.
read-only

Methods

dispose() → void
Dispose of all resources. [...]
inherited
invalidFields(FieldQuery fieldQuery) Iterable<FieldID>
Returns an Iterable of FieldIDs in fieldQuery that do not have Fields in this ValueBloc with equal FieldIDs. [...]
inherited
invalidStateFields(StateBlocState blocState) Iterable<FieldID>
Returns an Iterable of all of the FieldIDs of the StateFieldStates in blocState without a matching registered StateField [...]
isBlocStateValid(StateBlocState blocState) bool
Returns whether or not blocState is valid for this StateBloc. [...]
isFieldQueryValid(FieldQuery fieldQuery) bool
Check if all Fields specified are registered in this ValueBloc. [...]
inherited
isStateQueryValid(StateQuery stateQuery) bool
Checks if the StateQuery.blocKey is equal to key. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited