operator >= method

  1. @override
bool operator >=(
  1. DynamicNumber other
)
override

Implementation

@override
bool operator >=(DynamicNumber<dynamic> other) {
  if (other.isDecimal) {
    return toDecimal() >= other.toDecimal();
  }

  if (isBigInt || other.isBigInt) {
    return toBigInt() >= other.toBigInt();
  } else {
    return toInt() >= other.toInt();
  }
}