validate method
void
validate()
Kick start validation by invoking validate on the rootNode, which will then traverse the statechart invoking validate on all nodes.
If any error is found, an AutomataValidationException
will be thrown.
Implementation
void validate() {
final _validators = [
ValidateAtomicStates(this),
];
for (final validator in _validators) {
validator();
}
return rootNode.validate();
}