compare method

Ordering<void> compare(
  1. String other
)

Implementation

Ordering<void> compare(String other) {
  final difference = compareTo(other);

  if (difference > 0) {
    return Greater(null);
  } else if (difference < 0) {
    return Less(null);
  } else {
    return const Equal();
  }
}