updateQueryParam method

  1. @internal
void updateQueryParam(
  1. String name,
  2. String value
)

Update the name query parameter with the given value.

Implementation

@internal
void updateQueryParam(String name, String value) {
  if (AppRouteConfig.reservedKeys.contains(name)) {
    throw ArgumentError(
      'The query parameter $name is reserved and cannot be updated.',
    );
  }

  queryParams[name] = value;
  notifyListeners();
}