useRouteParams function

RouteParams useRouteParams(
  1. BuildContext context
)

Returns matched route params from the nearest route scope.

Implementation

RouteParams useRouteParams(BuildContext context) {
  return RouteScopeProvider.of(context).params;
}