location property

String get location

Retrieves the location (path) associated with the current build context.

Implementation

String get location {
  final RouteInformationParser? parser = router.routeInformationParser;
  final RouteDecoder? config = delegate.currentConfiguration;
  return parser?.restoreRouteInformation(config)?.uri.path ?? "/";
}