compare method
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);
}