isGreaterThan method

bool isGreaterThan(
  1. T other
)

Checks if this value is greater than other.

Returns true only if this value is strictly greater than other.

Example:

assert(10.isGreaterThan(5) == true);
assert(5.isGreaterThan(10) == false);

Implementation

bool isGreaterThan(T other) => compareWith(other) == .greater;