gt method

bool gt(
  1. T x,
  2. T y
)

Returns true if x > y, false otherwise.

Implementation

bool gt(T x, T y) {
  final c = partialCompare(x, y);
  return c != null && c > 0;
}