comparators 1.3.0
comparators: ^1.3.0 copied to clipboard
A package providing flexible Java-like comparator generators, featuring declarative comparator combining.
1.3.0 #
- Relaxed the
package:collectionconstraint to^1.15.0, so the package can be used on Dart SDKs before 3.4 and Flutter SDKs that pin olderpackage:collectionversions; compareSequentiallynow reads the given iterable once and compares without nesting the comparators;compareInverseno longer creates a new comparator on every comparison;- Fixed the
comparedocumentation example and other documentation typos; - Documented that
package:comparators/extensions.dartconflicts withthenfrom thepackage:collection.
1.2.0 #
- Implemented
compareInversecomparator for sorting in an inverse order as an alternative forpackage:collection'sinverse, as the latter requirescompareto have an explicit generic.
1.1.0 #
- Implemented
compareSequentiallycomparator as a concise alternative to comparator chaining withthen; - Added
package:collectiondependency; - Marked
then,reversedComparator extension methods andcompareTransformedfunction as deprecated - they duplicate existing functionality ofpackage:collection.
1.0.0 #
- Initial version: implemented Java-like comparators in Dart.