Hi, trying to use your state package in a dart test project.
Code is below, but first here is the output with added comments as to where things are not as expected.
It's a traffic light in the UK, red, redamber, green, amber, red
Any suggestions as to what I am doing wrong would be grateful.
Entered: red
Exit: red
Entered: redamber
Exit: redamber
Entered: green. // okay so far
Entered: amber // but then enters amber before leaving green
Exit: green
Entered: red. // then enters red before leaving amber
Exit: amber
Hi, trying to use your state package in a dart test project.
Code is below, but first here is the output with added comments as to where things are not as expected. It's a traffic light in the UK, red, redamber, green, amber, red
Any suggestions as to what I am doing wrong would be grateful.
Code
I also tried this format, but onDone is never called