maxY property

double get maxY

Maximum Y coordinate (includes both offset y and final fy for correct bar/line bounds)

Implementation

double get maxY {
  if (isEmpty) return 1.0;
  return map((p) => math.max(p.y, p.fy)).reduce((a, b) => math.max(a, b));
}