set method

void set(
  1. String key,
  2. Object? value, {
  3. bool push = false,
  4. Object? state,
})

Sets one query parameter and writes the updated URL to browser history.

Implementation

void set(String key, Object? value, {bool push = false, Object? state}) {
  update({key: value}, push: push, state: state);
}