operator == method

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

Checks if two Disease instances are equal.

Two diseases are considered equal if they have the same ID.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  return other is Disease && other.id == id;
}