find method

String? find(
  1. List<String> path
)

Implementation

String? find(List<String> path) {
  if (!path.isEmpty && subNodes.containsKey(path.first)) {
    return subNodes[path.removeAt(0)]!.find(path);
  }
  return className;
}