operator == method

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

Two InsanichessGames are equal if they have the same id.

Implementation

@override
bool operator ==(Object? other) {
  if (other is! InsanichessGame) return false;
  return id == other.id;
}