maxBy method

E maxBy(
  1. Comparable selector(
    1. E element
    )
)

Returns the first element yielding the largest value of the given selector or null if there are no elements.

Implementation

E maxBy(Comparable Function(E element) selector) => _minMaxBy(1, selector);