min method
Returns the smallest element of this as ordered by compare, or null
if this is empty.
Example:
['a', 'aaa', 'aa']
.min((a, b) => a.length.compareTo(b.length)).value; // 'a'
Implementation
E? min(Comparator<E> compare) =>
this.isEmpty ? null : this.reduce(_generateCustomMinFunction<E>(compare));