isInState method
Check if the given State
is in the path of any of the currently
active StateNodeDefinition
.
Implementation
bool isInState(Type S) {
for (final node in _activeNodes) {
if (node.stateType == S) {
return true;
}
if (node.fullPathStateType.contains(S)) {
return true;
}
}
return false;
}