MaxExtension<T> extension

Extends the Stream class with the ability to transform into a Future that completes with the largest item emitted by the Stream.

on

Methods

max([Comparator<T>? comparator]) Future<T>
Converts a Stream into a Future that completes with the largest item emitted by the Stream.