Screen? getScreenFromPath(String path) { final match = allScreens.match(path); if (match.isNotEmpty) { return match.last.node.data; } return null; }