operator == method

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

Two decimals are equal if they have the same numeric value, so 1.0 equals 1, and -0 equals 0.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is Decimal128Value && _number.compareTo(other._number) == 0;