copy method

Response<T> copy({
  1. int? requestCode,
  2. T? data,
  3. List<T>? backups,
  4. List<T>? ignores,
  5. List<T>? result,
  6. double? progress,
  7. Status? status,
  8. String? exception,
  9. String? message,
  10. dynamic feedback,
  11. 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,
  );
}