Returns true if path starts with the given route.
true
path
route
bool isActive(String route) { return path.startsWith(route); }