DashedPathProperties constructor

DashedPathProperties({
  1. required Path path,
  2. required double dashLength,
  3. required double dashGapLength,
})

Implementation

DashedPathProperties({
  required this.path,
  required double dashLength,
  required double dashGapLength,
})  : assert(dashLength > 0.0, 'dashLength must be > 0.0'),
      assert(dashGapLength > 0.0, 'dashGapLength must be > 0.0'),
      _dashLength = dashLength,
      _remainingDashLength = dashLength,
      _remainingDashGapLength = dashGapLength,
      _previousWasDash = false,
      extractedPathLength = 0.0;