operator == method

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

Returns true if this Int32 has the same numeric value as the given object. The argument may be an int or an IntX.

Implementation

@override
bool operator ==(other) {
  if (other is Int32) {
    return _i == other._i;
  } else if (other is Int64) {
    return toInt64() == other;
  } else if (other is int) {
    return _i == other;
  }
  return false;
}