maxOrNull property
Coral<E?>
get
maxOrNull
Returns the maximum element in this collection, or null if empty.
Implementation
Coral<E?> get maxOrNull => coral.map((source) {
if (source.isEmpty) return null;
return source.reduce((a, b) => a.compareTo(b) > 0 ? a : b);
});