DashPattern constructor

const DashPattern({
  1. required double dashLength,
  2. required double gapLength,
  3. 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');