StringOrd constructor
Initialize a new StringOrd.
final ord = StringOrd();
print(ord.compare('b', 'a')); // Outputs: 1
Implementation
StringOrd() : super((String x, String y) => x.compareTo(y));
Initialize a new StringOrd.
final ord = StringOrd();
print(ord.compare('b', 'a')); // Outputs: 1
StringOrd() : super((String x, String y) => x.compareTo(y));