copyWith method

ErrorResponse copyWith({
  1. ErrorDetail? error,
})

Implementation

ErrorResponse copyWith({ErrorDetail? error}) {
  return ErrorResponse(error: error ?? this.error);
}