operator == method

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

Compares two PassioFoodMetadata objects for equality.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  if (other is! PassioFoodMetadata) return false;
  return barcode == other.barcode &&
      listEquals(foodOrigins, other.foodOrigins) &&
      ingredientsDescription == other.ingredientsDescription &&
      listEquals(tags, other.tags);
}