compare method

  1. @override
int compare(
  1. T? left,
  2. T? right
)
override

Compares two values.

Implementation

@override
int compare(T? left, T? right) {
  if (left == null) {
    if (right == null) {
      return 0;
    }
    return -1;
  }
  if (right == null) {
    return 1;
  }
  return elementKind.compare(left, right);
}