operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Compares two PassioMealPlan objects for equality.

Implementation

@override
bool operator ==(Object other) {
  if (other is! PassioMealPlan) return false;
  if (identical(this, other)) return true;

  return carbTarget == other.carbTarget &&
      fatTarget == other.fatTarget &&
      mealPlanLabel == other.mealPlanLabel &&
      mealPlanTitle == other.mealPlanTitle &&
      proteinTarget == other.proteinTarget;
}