operator == method

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

Allows two instances of MTGSymbol to be considered equal if the relevant properties are equal.

Implementation

@override
bool operator ==(Object other) {
  return identical(this, other) ||
      other is MTGSymbol &&
          runtimeType == other.runtimeType &&
          english == other.english &&
          image == other.image &&
          looseVariant == other.looseVariant &&
          manaValue == other.manaValue;
}