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