operator == method

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

Compares this CreditCardModel with another object for equality.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;

  return other is CreditCardModel &&
      other.number == number &&
      other.expirationMonth == expirationMonth &&
      other.expirationYear == expirationYear &&
      other.holderName == holderName;
}