states 1.1.0 copy "states: ^1.1.0" to clipboard
states: ^1.1.0 copied to clipboard

States is Finite State Machine for Dart. You can define states of your application and reaction on transition between states

example/README.md

EXAMPLE: #

1. Simple Loading FMS #

Output:

> BEFORE LOADING START -> state: state_initial
> RUN -> ACTION_LOADING_START
> CURRENT -> ACTION_LOADING_START 
		state: state_initial 
		transition:  [state_initial] -> [state_loading] on: [action_start_loading]
> 	 END OF microtask queue -> state: state_loading next action: action_loading_complete
> CURRENT -> ACTION_LOADING_COMPLETE 
		state: state_loading 
		transition:  [state_loading] -> [state_loading_complete] on: [action_loading_complete]
> 	 END OF microtask queue -> state: state_loading_complete

2. SPA with States #

Please take a look how this library can help to create SPA with simple dart:html See folder example/spa_with_states SPA with States

2
likes
120
pub points
42%
popularity

Publisher

unverified uploader

States is Finite State Machine for Dart. You can define states of your application and reaction on transition between states

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on states