equalsDynamicInt method

  1. @override
bool equalsDynamicInt(
  1. DynamicInt other
)
override

Returns true if other is equals to this number.

Implementation

@override
bool equalsDynamicInt(DynamicInt other) {
  if (isBigInt || other.isBigInt) {
    return toBigInt() == other.toBigInt();
  } else {
    return toInt() == other.toInt();
  }
}