compareMultiple function
Compares multiple comparators.
Implementation
int compareMultiple(List<int Function()> comparators) {
assert(comparators.length > 1, 'Provide more than one comparator.');
late int compareValue;
for (final comparator in comparators) {
compareValue = comparator();
if (compareValue != 0) break;
}
return compareValue;
}