maxBy<V> method

T? maxBy<V>(
  1. V property(
    1. T element
    ), {
  2. int compare(
    1. V,
    2. V
    )?,
})

Implementation

T? maxBy<V>(
  V Function(T element) property, {
  int Function(V, V)? compare,
}) =>
    coll.maxBy(
      this,
      property,
      compare: compare,
    );