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,
- bool? hadRequestBreakpoint,
- bool? hadResponseBreakpoint,
- bool? requestEditedAtBreakpoint,
- bool? responseEditedAtBreakpoint,
- InfospectBreakpointEdit? requestBreakpointEdit,
- InfospectBreakpointEdit? responseBreakpointEdit,
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,
bool? hadRequestBreakpoint,
bool? hadResponseBreakpoint,
bool? requestEditedAtBreakpoint,
bool? responseEditedAtBreakpoint,
InfospectBreakpointEdit? requestBreakpointEdit,
InfospectBreakpointEdit? responseBreakpointEdit,
}) {
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,
hadRequestBreakpoint: hadRequestBreakpoint ?? this.hadRequestBreakpoint,
hadResponseBreakpoint: hadResponseBreakpoint ?? this.hadResponseBreakpoint,
requestEditedAtBreakpoint:
requestEditedAtBreakpoint ?? this.requestEditedAtBreakpoint,
responseEditedAtBreakpoint:
responseEditedAtBreakpoint ?? this.responseEditedAtBreakpoint,
requestBreakpointEdit:
requestBreakpointEdit ?? this.requestBreakpointEdit,
responseBreakpointEdit:
responseBreakpointEdit ?? this.responseBreakpointEdit,
);
}