minOrNull property

Coral<E?> get minOrNull

Returns the minimum element in this collection, or null if empty.

Implementation

Coral<E?> get minOrNull => coral.map((source) {
      if (source.isEmpty) return null;
      return source.reduce((a, b) => a.compareTo(b) < 0 ? a : b);
    });