copyWith method

CleanFailure copyWith({
  1. String? tag,
  2. String? error,
  3. int? statusCode,
})

Implementation

CleanFailure copyWith({String? tag, String? error, int? statusCode}) {
  return CleanFailure(
      error: error ?? this.error, statusCode: statusCode ?? this.statusCode);
}