BaseRequestCopyWith extension

Extends BaseRequest to provide copied instances.

on

Methods

copyWith({HttpMethod? method, Uri? url, Map<String, String>? headers, bool? followRedirects, int? maxRedirects, bool? persistentConnection, dynamic body, Encoding? encoding, Map<String, String>? fields, List<MultipartFile>? files, Stream<List<int>>? stream}) BaseRequest
Creates a new instance of BaseRequest based of on this. It copies all the properties and overrides the ones sent via parameters.