copyWith method
Implementation
RequestContext copyWith({
Uri? uri,
String? method,
Map<String, String>? headers,
Object? body,
Map<String, dynamic>? extra,
}) =>
RequestContext(
uri: uri ?? this.uri,
method: method ?? this.method,
headers: headers ?? Map.of(this.headers),
body: body ?? this.body,
extra: extra ?? Map.of(this.extra),
);