defaultHeight property
int?
get
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();