max property
Coral<int>
get
max
Returns the maximum element in this collection, or throws StateError if empty.
Implementation
Coral<int> get max => coral.map((source) {
if (source.isEmpty) throw StateError('No element');
return source.max;
});