max property Null safety

double max

A maximal element of the iterable.

The iterable must not be empty.

Implementation

double get max => maxOrNull ?? (throw StateError('No element'));