defaultWidth property

int? defaultWidth

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

Implementation

int? get defaultWidth => isEmpty ? null : (maxXValue! - minXValue! + penStrokeWidth * 2).toInt();