copyWith method
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,
);
}