copyWith method

RequestOptions copyWith({
  1. Map<String, String>? headers,
  2. Duration? timeout,
  3. String? baseUrlOverride,
  4. bool? includeToken,
  5. Map<String, String>? extraHeaders,
})

Implementation

RequestOptions copyWith({
  Map<String, String>? headers,
  Duration? timeout,
  String? baseUrlOverride,
  bool? includeToken,
  Map<String, String>? extraHeaders,
}) => RequestOptions(
  headers: headers ?? this.headers,
  timeout: timeout ?? this.timeout,
  baseUrlOverride: baseUrlOverride ?? this.baseUrlOverride,
  includeToken: includeToken ?? this.includeToken,
  extraHeaders: extraHeaders ?? this.extraHeaders,
);