tree_state_machine 3.0.1 copy "tree_state_machine: ^3.0.1" to clipboard
tree_state_machine: ^3.0.1 copied to clipboard

Define and run hierarchical state machines in Dart and Flutter.

tree_state_machine #

tree_state_machine is a Dart package for defining and executing hierarchical state machines.

Features #

  • Hierarchical state trees
  • Asynchronous message processing
  • Stream based event notifications
  • Declarative state definitions
  • Nested state machines

Overview #

The tree_state_machine package provides APIs for defining a hierarchical tree of states, and creating state machines that can manage an instance of a state tree. The state machine can be used to dispatch messages to the current state for processing, and receive notifications as state transitions occur.

Refer to UML state machines for further conceptual background on hierarchical state machines.

Documentation #

See the API documentation for details on the following topics:

Further References #

  • The tree_state_router package, for declarative routing in Flutter apps based on a TreeStateMachine.
4
likes
160
points
164
downloads

Publisher

unverified uploader

Weekly Downloads

Define and run hierarchical state machines in Dart and Flutter.

Repository (GitHub)
View/report issues

Topics

#state-machine #reactive #state-management

Documentation

API reference

License

MIT (license)

Dependencies

async, collection, logging

More

Packages that depend on tree_state_machine