copyWith method
Produces a new RequestOptions with fields selectively overridden.
Implementation
RequestOptions copyWith({
String? baseUrl,
Map<String, String>? headers,
Duration? timeout,
bool? skipInterceptors,
Map<String, dynamic>? extra,
}) =>
RequestOptions(
baseUrl: baseUrl ?? this.baseUrl,
headers: headers ?? this.headers,
timeout: timeout ?? this.timeout,
skipInterceptors: skipInterceptors ?? this.skipInterceptors,
extra: extra ?? this.extra,
);