compareTo method

  1. @override
int compareTo(
  1. Number other
)
override

Compares this to other.

Returns a negative number if this is less than other, zero if they are equal, and a positive number if this is greater than other.

Implementation

@override
int compareTo(Number other) => Decimal.fromInt(value).compareTo(other);