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
nodeType NodeType
no setterinherited
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>(EntryChannel<P> channel, void build(TransitionHandlerBuilder<D, P>)) → void
Describes how transition to this state through channel should be handled.
override
onEnterWithData<D2>(DataStateKey<D2> ancestorKey, 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>(DataStateKey<D2> ancestorKey, 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>(DataStateKey<D2> ancestorKey, 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
toTreeNodeInfo(_StateBuilder getChildBuilder(StateKey), TreeNodeInfo? parent) → TreeNodeInfo
inherited

Operators

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