copyWith method

InfospectNetworkRequest copyWith({
  1. int? size,
  2. DateTime? time,
  3. Map<String, dynamic>? headers,
  4. dynamic body,
  5. String? contentType,
  6. List<Cookie>? cookies,
  7. Map<String, dynamic>? queryParameters,
  8. List<InfospectFormDataFile>? formDataFiles,
  9. List<InfospectFormDataField>? formDataFields,
})

Implementation

InfospectNetworkRequest copyWith({
  int? size,
  DateTime? time,
  Map<String, dynamic>? headers,
  dynamic body,
  String? contentType,
  List<Cookie>? cookies,
  Map<String, dynamic>? queryParameters,
  List<InfospectFormDataFile>? formDataFiles,
  List<InfospectFormDataField>? formDataFields,
}) {
  return InfospectNetworkRequest(
    size: size ?? this.size,
    requestTime: time ?? this.time,
    headers: headers ?? this.headers,
    body: body ?? this.body,
    contentType: contentType ?? this.contentType,
    cookies: cookies ?? this.cookies,
    queryParameters: queryParameters ?? this.queryParameters,
    formDataFiles: formDataFiles ?? this.formDataFiles,
    formDataFields: formDataFields ?? this.formDataFields,
  );
}