bool matchPath(String? route) { if (route == null) { return false; } final uri = Uri.parse(route); return this.uri.path.isEmpty || uri.path == this.uri.path; }