operator == method

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

Overrides the equality operator.

Implementation

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

  return other is UserProfileModel &&
      other.id == id &&
      other.name == name &&
      other._age == _age &&
      other.gender == gender &&
      other._weight == _weight &&
      other._height == _height &&
      other.heightUnit == heightUnit &&
      other.weightUnit == weightUnit &&
      other._targetWeight == _targetWeight &&
      other._targetWater == _targetWater &&
      other._activityLevel == _activityLevel &&
      other._calorieDeficit == _calorieDeficit;
}