copyWith method
NetworkData
copyWith({
- String? url,
- String? method,
- String? requestBody,
- String? responseBody,
- int? requestBodySize,
- int? responseBodySize,
- int? status,
- Map<
String, dynamic> ? requestHeaders, - Map<
String, dynamic> ? responseHeaders, - int? duration,
- String? requestContentType,
- String? responseContentType,
- DateTime? endTime,
- DateTime? startTime,
- int? errorCode,
- String? errorDomain,
Implementation
NetworkData copyWith({
String? url,
String? method,
String? requestBody,
String? responseBody,
int? requestBodySize,
int? responseBodySize,
int? status,
Map<String, dynamic>? requestHeaders,
Map<String, dynamic>? responseHeaders,
int? duration,
String? requestContentType,
String? responseContentType,
DateTime? endTime,
DateTime? startTime,
int? errorCode,
String? errorDomain,
}) =>
NetworkData(
url: url ?? this.url,
method: method ?? this.method,
requestBody: requestBody ?? this.requestBody,
responseBody: responseBody ?? this.responseBody,
requestBodySize: requestBodySize ?? this.requestBodySize,
responseBodySize: responseBodySize ?? this.responseBodySize,
status: status ?? this.status,
requestHeaders: requestHeaders ?? this.requestHeaders,
responseHeaders: responseHeaders ?? this.responseHeaders,
duration: duration ?? this.duration,
requestContentType: requestContentType ?? this.requestContentType,
responseContentType: responseContentType ?? this.responseContentType,
endTime: endTime ?? this.endTime,
startTime: startTime ?? this.startTime,
errorCode: errorCode ?? this.errorCode,
errorDomain: errorDomain ?? this.errorDomain,
);