hierarchical_state_machine 1.0.0 copy "hierarchical_state_machine: ^1.0.0" to clipboard
hierarchical_state_machine: ^1.0.0 copied to clipboard

A framework for building state machines similar to UML state charts. States are organized in parent/child relationships, allowing common event handling to be performed by more generic, containing states.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add hierarchical_state_machine

With Flutter:

 $ flutter pub add hierarchical_state_machine

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  hierarchical_state_machine: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:hierarchical_state_machine/hierarchical_state_machine.dart';
6
likes
120
pub points
40%
popularity

Publisher

verified publishermcdole.org

A framework for building state machines similar to UML state charts. States are organized in parent/child relationships, allowing common event handling to be performed by more generic, containing states.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

logging

More

Packages that depend on hierarchical_state_machine