maxBy method
Returns the first element yielding the largest value of the given
selector or null if there are no elements.
Implementation
T maxBy(Comparable selector(T element)) => _minMaxBy(1, selector);
Returns the first element yielding the largest value of the given
selector or null if there are no elements.
T maxBy(Comparable selector(T element)) => _minMaxBy(1, selector);