operator == method
Compares two PassioSearchNutritionPreview
objects for equality.
Implementation
@override
bool operator ==(Object other) {
if (other is! PassioSearchNutritionPreview) return false;
if (identical(this, other)) return true;
return calories == other.calories &&
carbs == other.carbs &&
fat == other.fat &&
protein == other.protein &&
fiber == other.fiber &&
servingUnit == other.servingUnit &&
servingQuantity == other.servingQuantity &&
weightUnit == other.weightUnit &&
weightQuantity == other.weightQuantity;
}