operator == method

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

Operador de igualdad

Implementation

@override
bool operator ==(Object other) {
  if (other is Number) {
    return _value == other._value;
  }
  try {
    final otherNum = _toNumber(other);
    return _value == otherNum._value;
  } catch (e) {
    return false;
  }
}