addParam method

WebRequest addParam(
  1. String key,
  2. Object? param
)

Adds a single parameter to the request.

key - The key of the parameter to add. param - The value of the parameter to add.

Returns the current WebRequest instance for method chaining.

Implementation

WebRequest addParam(String key, Object? param) {
  _params[key] = param;
  return this;
}