change method

  1. @override
ShelfApiRequest change({
  1. Map<String, String>? headers,
  2. Map<String, dynamic>? context,
  3. ApiCodec? codec,
})
override

Implementation

@override
ShelfApiRequest change({
  Map<String, String>? headers,
  Map<String, dynamic>? context,
  ApiCodec? codec,
}) {
  return ShelfApiRequest._(
    url: url,
    method: method,
    headers: {...this.headers, ...headers ?? {}},
    parameters: parameters,
    context: {...this.context, ...context ?? {}},
    codec: codec ?? this.codec,
  );
}