StreamMaxFuture<T> constructor

StreamMaxFuture<T>(Stream<T> stream, [ Comparator<T> comparator ])

Implementation

StreamMaxFuture(Stream<T> stream, [Comparator<T> comparator])
    : super(stream
          .toList()
          .then((List<T> values) => (values..sort(comparator)).last));