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

A performant state machine framework inspired by UML. Hierarchical parent/child states enable shared event handling for cleaner, more efficient logic.

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: ^2.2.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';
13
likes
160
points
1.16k
downloads

Publisher

verified publishermcdole.org

Weekly Downloads

A performant state machine framework inspired by UML. Hierarchical parent/child states enable shared event handling for cleaner, more efficient logic.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

convert, crypto, meta

More

Packages that depend on hierarchical_state_machine