replace method

Request replace({
  1. HttpMethod? method,
  2. String? url,
  3. Map<String, dynamic>? parameters,
  4. Map<String, String?>? headers,
  5. Encoding? encoding,
})

Implementation

Request replace(
        {HttpMethod? method,
        String? url,
        Map<String, dynamic>? parameters,
        Map<String, String?>? headers,
        Encoding? encoding}) =>
    new Request(method as String? ?? this.method, url ?? this.url,
        parameters: parameters ?? this.parameters,
        headers: headers ?? this.headers,
        body: this.body,
        authenticated: this.authenticated);