copyWith method
InfospectNetworkCall
copyWith({
- int? id,
- DateTime? createdTime,
- String? client,
- bool? loading,
- bool? secure,
- String? method,
- String? endpoint,
- String? server,
- String? uri,
- int? duration,
- InfospectNetworkRequest? request,
- InfospectNetworkResponse? response,
- InfospectNetworkError? error,
Implementation
InfospectNetworkCall copyWith({
int? id,
DateTime? createdTime,
String? client,
bool? loading,
bool? secure,
String? method,
String? endpoint,
String? server,
String? uri,
int? duration,
InfospectNetworkRequest? request,
InfospectNetworkResponse? response,
InfospectNetworkError? error,
}) {
return InfospectNetworkCall(
id ?? this.id,
time: createdTime ?? this.createdTime,
client: client ?? this.client,
loading: loading ?? this.loading,
secure: secure ?? this.secure,
method: method ?? this.method,
endpoint: endpoint ?? this.endpoint,
server: server ?? this.server,
uri: uri ?? this.uri,
duration: duration ?? this.duration,
request: request ?? this.request,
response: response ?? this.response,
error: error ?? this.error,
);
}