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

hashCode int
The hash code for this object.
no setterinherited
key StateKey
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handleOnEnter(TransitionHandler handler, {String? label}) → void
Handles all entry transitions with the handler function.
override
handleOnExit(TransitionHandler handler, {String? label}) → void
Handles all entry transitions with the handler function.
handleOnMessage(MessageHandler handler) → void
Handles all messages with the handler function.
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 channel should 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 M should 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 M should be handled by this state.
onMessageWithData<M, D2>(void build(MessageHandlerBuilder<M, D, D2> b)) → void
Describes how messages of type M should be handled by this state, when provided ancestor state data of type D2.
toString() String
A string representation of this object.
inherited

Operators

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