client property

Client client
inherited

Returns the current HTTP Client instance to use in this class.

The return value is guaranteed to never be null.

Implementation

Client get client => _client;
void client=(Client newClient)
inherited

Requests to use a new HTTP Client in this class.

If the newClient is null, an ArgumentError is thrown.

Implementation

set client(Client newClient) {
  if (newClient == null) {
    throw ArgumentError('New client instance cannot be null.');
  }
  _client = newClient;
}