DashedDecoration.animated constructor

const DashedDecoration.animated({
  1. Gradient? gradient,
  2. Color? color,
  3. double step = 2.0,
  4. double span = 2.0,
  5. int pointCount = 0,
  6. double? pointWidth,
  7. Radius? radius,
  8. double strokeWidth = 1.0,
  9. required double animationOffset,
  10. bool enableCaching = true,
})

Creates an animated dashed decoration with marching ants effect.

Implementation

const DashedDecoration.animated({
  this.gradient,
  this.color,
  this.step = 2.0,
  this.span = 2.0,
  this.pointCount = 0,
  this.pointWidth,
  this.radius,
  this.strokeWidth = 1.0,
  required this.animationOffset,
  this.enableCaching = true,
}) : dashPattern = null;