max2<T> function
Implementation
T max2<T>(
T a,
T b, [
Comparator<T> comparator = compareNaturalOrder,
]) =>
comparator(a, b) > 0 ? a : b;
T max2<T>(
T a,
T b, [
Comparator<T> comparator = compareNaturalOrder,
]) =>
comparator(a, b) > 0 ? a : b;