defaultHeight property

int? defaultHeight

Calculates a default height based on existing points. Will return null if there are no points.

Implementation

int? get defaultHeight => isEmpty ? null : (maxYValue! - minYValue! + penStrokeWidth * 2).toInt();