location property

String get location

Implementation

String get location {
  final RouteMatch lastMatch = routerDelegate.currentConfiguration.last;
  final RouteMatchList matchList = lastMatch is ImperativeRouteMatch
      ? lastMatch.matches
      : routerDelegate.currentConfiguration;
  final String location = matchList.uri.toString();
  return location;
}