withQueryParameter method

CoffeeAuthRequest<T> withQueryParameter(
  1. String key,
  2. String value
)

Chains a query parameter to the request made by the getCurrentUser method.

This method allows you to add additional query parameters to the request URL when calling getCurrentUser. The parameters are stored in the instance and appended to the URL during the API call.

  • key: The name of the query parameter.
  • value: The value of the query parameter.

Returns the instance of the class, allowing for method chaining.

Example:

// Adds a query parameter 'exampleKey' with the value 'exampleValue' to the request.
authRequest.withQueryParameter('exampleKey', 'exampleValue');

See also:

Implementation

CoffeeAuthRequest<T> withQueryParameter(String key, String value) {
  _queryParams[key] = value;
  return this;
}