DashPattern constructor
const
DashPattern({
- required double dashLength,
- required double gapLength,
- PolylineCap cap = PolylineCap.butt,
Creates a dash pattern; both lengths must be positive.
Implementation
const DashPattern({
required this.dashLength,
required this.gapLength,
this.cap = PolylineCap.butt,
}) : assert(dashLength > 0, 'dashLength must be positive'),
assert(gapLength > 0, 'gapLength must be positive');