compareTo method

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

Compares this Integer with another Integer.

Returns:

  • negative value if this < other
  • zero if this == other
  • positive value if this > other

Implementation

@override
int compareTo(Integer other) => _value.compareTo(other._value);