equalsToCurrentRoute static method

bool equalsToCurrentRoute(
  1. String route, {
  2. Map<String, String>? parameters,
})

Returns true if route equals to currentRoute.

Implementation

static bool equalsToCurrentRoute(String route,
        {Map<String, String>? parameters}) =>
    currentRoute == route &&
    (parameters == null || equalsToCurrentRouteParameters(parameters));