StateBloc class

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

See StateBlocImpl for more information.

Inheritance
Implementers

Constructors

StateBloc()

Properties

state StateBlocState
Gets the current StateBlocState of this StateBloc.
read-only
stateFieldIDs → Iterable<FieldID>
FieldIDs for all registered StateFields.
read-only
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

Methods

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. If this Bloc is already closed calling this method will result in a StateError being thrown. For more information on when a Bloc is considered closed see Bloc.closed. [...]
isStateQueryValid(StateQuery stateQuery) → bool
Checks if the StateQuery.blocKey is equal to key. If this Bloc is already closed calling this method will result in a StateError being thrown. For more information on when a Bloc is considered closed see Bloc.closed.
dispose() → void
Dispose of all resources. [...]
inherited
invalidFields(FieldQuery fieldQuery) → Iterable<FieldID>
{@template invalid_fields} Returns an Iterable of FieldIDs in fieldQuery that do not have Fields in this ValueBloc with equal FieldIDs. [...]
inherited
isFieldQueryValid(FieldQuery fieldQuery) → bool
{@template is_field_query_valid} Check if all Fields specified are registered in this ValueBloc. {@endtemplate} [...]
inherited
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 ==(dynamic other) → bool
The equality operator.
inherited