copy method
Response<T>
copy(
{ - int? requestCode,
- T? data,
- List<T>? backups,
- List<T>? ignores,
- List<T>? result,
- double? progress,
- Status? status,
- String? exception,
- String? message,
- dynamic feedback,
- dynamic snapshot,
})
Implementation
Response<T> copy({
int? requestCode,
T? data,
List<T>? backups,
List<T>? ignores,
List<T>? result,
double? progress,
Status? status,
String? exception,
String? message,
dynamic feedback,
dynamic snapshot,
}) {
return Response<T>(
data: data ?? _data,
error: exception ?? _error,
feedback: feedback ?? this.feedback,
message: message ?? _message,
progress: progress ?? _progress,
requestCode: requestCode ?? this.requestCode,
backups: backups ?? _backups,
ignores: ignores ?? _ignores,
result: result ?? _result,
snapshot: snapshot ?? this.snapshot,
status: status ?? _status,
);
}