max property

double get max

Largest value, or double.nan when there are no values.

Implementation

double get max => _sorted.isEmpty ? double.nan : _sorted.last;