maxXValue property

double? maxXValue

The biggest x value for all points. Will return null if there are no points.

Implementation

double? get maxXValue => isEmpty ? null : points.map((Point p) => p.offset.dx).reduce(max);