current property

RouteState<Object?>? get current

Implementation

RouteState? get current {
  final browserUrl = platformNavigator.getCurrentUrl();
  if (browserUrl == null) return null;
  final appRelativeUrl = platformNavigator.stripBaseHref(browserUrl);
  return _getBuilderByPath(
    appRelativeUrl,
  )?.routeState.copyWith(queryParameters: appRelativeUrl.queryParameters);
}