useQuery function

URLSearchParams useQuery(
  1. BuildContext context
)

Returns query params from the nearest route scope.

Implementation

URLSearchParams useQuery(BuildContext context) {
  return RouteScopeProvider.of(context).query;
}