location property

String get location

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

Implementation

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