pathForLeafState method

StatePath? pathForLeafState(
  1. Type leafState
)

Implementation

StatePath? pathForLeafState(Type leafState) {
  for (final path in _leafPaths) {
    if (path.leaf.stateType == leafState) {
      return path;
    }
  }
  return null;
}