copyWith method

CustomServiceParams copyWith({
  1. Map<String, String>? headers,
  2. RequestMethod? requestMethod,
  3. BuBytes? body,
  4. Uri? path,
})

Implementation

CustomServiceParams copyWith({
  Map<String, String>? headers,
  RequestMethod? requestMethod,
  BuBytes? body,
  Uri? path,
}) {
  return CustomServiceParams(
    headers: headers ?? this.headers,
    requestMethod: requestMethod ?? this.requestMethod,
    body: body ?? this.body,
    path: path ?? this.path,
    responseEncoding: responseEncoding,
  );
}