operator == method

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

Two players are equal if they have the same id.

Implementation

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