copyWith method

FittorRequest copyWith({
  1. String? url,
  2. HttpMethod? method,
  3. FittorHeaders? headers,
  4. dynamic body,
  5. Map<String, String>? queryParameters,
  6. Duration? timeout,
  7. bool? followRedirects,
  8. int? maxRedirects,
  9. Map<String, dynamic>? extra,
})

Implementation

FittorRequest copyWith({
  String? url,
  HttpMethod? method,
  FittorHeaders? headers,
  dynamic body,
  Map<String, String>? queryParameters,
  Duration? timeout,
  bool? followRedirects,
  int? maxRedirects,
  Map<String, dynamic>? extra,
}) {
  return FittorRequest(
    url: url ?? this.url,
    method: method ?? this.method,
    headers: headers ?? this.headers,
    body: body ?? this.body,
    queryParameters: queryParameters ?? this.queryParameters,
    timeout: timeout ?? this.timeout,
    followRedirects: followRedirects ?? this.followRedirects,
    maxRedirects: maxRedirects ?? this.maxRedirects,
    extra: extra ?? this.extra,
  );
}