maxWhere method

T maxWhere(
  1. bool test(
    1. T element
    )
)

Returns the element with maximum value of filtered collection by test predicate.

If this is empty, StateError will be thrown.

For more info about filtering refer to Iterable.where.

Implementation

T maxWhere(bool test(T element)) => this.where(test).max;