StringOrd constructor

StringOrd()

Initialize a new StringOrd.

final ord = StringOrd();
print(ord.compare('b', 'a')); // Outputs: 1

Implementation

StringOrd() : super((String x, String y) => x.compareTo(y));