operator == method

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

Compara se dois números de telefone são iguais.

Implementation

@override
bool operator ==(Object other) {
  if (other is Telefone) {
    return hashCode == other.hashCode;
  }
  if (other is string) {
    return completo == other;
  }
  if (other is num) {
    return completo == "$other";
  }

  return false;
}