isInState method

bool isInState(
  1. Type S
)

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;
}