copyWith method

AtomicRequest copyWith({
  1. String? method,
  2. Uri? uri,
  3. Map<String, String>? headers,
  4. dynamic body,
})

Implementation

AtomicRequest copyWith({
  String? method,
  Uri? uri,
  Map<String, String>? headers,
  dynamic body,
}) {
  return AtomicRequest(
    method: method ?? this.method,
    uri: uri ?? this.uri,
    headers: headers ?? this.headers,
    body: body ?? this.body,
  );
}