maxByEx<TKey> method
maxBy
as an extension method
Implementation
T? maxByEx<TKey>(
TKey orderBy(T? item), {
int Function(TKey, TKey)? compare,
}) =>
maxBy<T, TKey>(
this,
orderBy,
//TODO: change this after fixing https://github.com/dart-lang/collection/issues/188
compare: compare == null ? null : (t1, t2) => compare(t1, t2),
);