StateBuilder<D> class
Provides methods for describing the behavior of a state carrying state data of type D. D may
be void if the state does not have any associated state data.
- Implemented types
Properties
Methods
-
handleOnEnter(
TransitionHandler handler, {String? label}) → void -
Handles all entry transitions with the
handlerfunction.override -
handleOnExit(
TransitionHandler handler, {String? label}) → void -
Handles all entry transitions with the
handlerfunction. -
handleOnMessage(
MessageHandler handler) → void -
Handles all messages with the
handlerfunction. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEnter(
void build(TransitionHandlerBuilder< D, void> )) → void -
Describes how transitions to this state should be handled.
override
-
onEnterFromChannel<
P> (Channel< P> channel, void build(TransitionHandlerBuilder<D, P> )) → void -
Describes how transition to this state through
channelshould be handled.override -
onEnterWithData<
D2> (void build(TransitionHandlerBuilder< D, D2> )) → void -
Describes how transitions to this state should be handled.
override
-
onExit(
void build(TransitionHandlerBuilder< D, void> )) → void - Describes how transitions from this state should be handled.
-
onExitWithData<
D2> (void build(TransitionHandlerBuilder< D, D2> )) → void - Describes how transitions from this state should be handled.
-
onMessage<
M> (void build(MessageHandlerBuilder< M, D, void> b), {M? message}) → void -
Describes how messages of type
Mshould be handled by this state. -
onMessageValue<
M> (M message, void build(MessageHandlerBuilder< M, D, void> b), {String? messageName}) → void -
Describes how a message value of type
Mshould be handled by this state. -
onMessageWithData<
M, D2> (void build(MessageHandlerBuilder< M, D, D2> b)) → void -
Describes how messages of type
Mshould be handled by this state, when provided ancestor state data of typeD2. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited