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