cancelIf method
Add a test that will be called before executing
this transition. If test
returns true, the
transition will be canceled.
Implementation
void cancelIf(bool test(StateChange stateChange)) {
_cancelTests.add(test);
}
Add a test that will be called before executing
this transition. If test
returns true, the
transition will be canceled.
void cancelIf(bool test(StateChange stateChange)) {
_cancelTests.add(test);
}