maxWhere method
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;