@@ -18,9 +18,10 @@ extension SortSet<T extends Object> on Set<T> {
1818 tmp.sort (); // Sort using default comparator.
1919 } else {
2020 throw ErrorOfType <SortingNotSupported <T >>(
21- message: 'Error trying to sort the set: $this .' ,
22- invalidState: 'Type \' $T \' is not comparable.' ,
23- expectedState: 'Try specifying a valid comparator for type \' $T \' .' );
21+ message: 'Error trying to sort the set: $this .' ,
22+ invalidState: 'Type \' $T \' is not comparable.' ,
23+ expectedState: 'Try specifying a valid comparator for type \' $T \' .' ,
24+ );
2425 }
2526 clear ();
2627 addAll (tmp);
@@ -44,10 +45,12 @@ extension SortMap<K extends Object, V extends Object> on Map<K, V> {
4445 tmp.sort ((left, right) => (left.key as Comparable ).compareTo (right.key));
4546 } else {
4647 throw ErrorOfType <SortingNotSupported <K >>(
47- message: 'Error trying to sort $this using the keys $keys .' ,
48- invalidState: 'Type \' $K \' is not comparable.' ,
49- expectedState: 'Try calling sortByKey() '
50- 'specifying a valid comparator for type \' $K \' .' );
48+ message: 'Error trying to sort $this using the keys $keys .' ,
49+ invalidState: 'Type \' $K \' is not comparable.' ,
50+ expectedState:
51+ 'Try calling sortByKey() '
52+ 'specifying a valid comparator for type \' $K \' .' ,
53+ );
5154 }
5255 clear ();
5356 addEntries (tmp);
@@ -68,10 +71,12 @@ extension SortMap<K extends Object, V extends Object> on Map<K, V> {
6871 );
6972 } else {
7073 throw ErrorOfType <SortingNotSupported <V >>(
71- message: 'Error trying to sort a map of type Map<$K , $V >.' ,
72- invalidState: 'Type \' $V \' is not comparable.' ,
73- expectedState: 'Try calling sortByValue() specifying '
74- 'a valid comparator for type \' $V \' .' );
74+ message: 'Error trying to sort a map of type Map<$K , $V >.' ,
75+ invalidState: 'Type \' $V \' is not comparable.' ,
76+ expectedState:
77+ 'Try calling sortByValue() specifying '
78+ 'a valid comparator for type \' $V \' .' ,
79+ );
7580 }
7681 clear ();
7782 addEntries (tmp);
0 commit comments