isActive method

bool isActive(
  1. String route
)

Returns true if path starts with the given route.

Implementation

bool isActive(String route) {
  return path.startsWith(route);
}