equalsToCurrentRoute static method
Returns true if route equals to currentRoute.
- If
parametersis provided it checks ifparametersis equals to currentRouteParameters.
Implementation
static bool equalsToCurrentRoute(
String route, {
Map<String, String>? parameters,
}) =>
currentRoute == route &&
(parameters == null || equalsToCurrentRouteParameters(parameters));