DottedLine constructor

const DottedLine({
  1. Key? key,
  2. Axis direction = Axis.horizontal,
  3. WrapAlignment alignment = WrapAlignment.center,
  4. double lineLength = double.infinity,
  5. double lineThickness = 1.0,
  6. double dashLength = 4.0,
  7. Color dashColor = Colors.black,
  8. List<Color>? dashGradient,
  9. double dashGapLength = 4.0,
  10. Color dashGapColor = Colors.transparent,
  11. List<Color>? dashGapGradient,
  12. double dashRadius = 0.0,
  13. double dashGapRadius = 0.0,
})

Creates dotted line with the given parameters

Implementation

const DottedLine({
  Key? key,
  this.direction = Axis.horizontal,
  this.alignment = WrapAlignment.center,
  this.lineLength = double.infinity,
  this.lineThickness = 1.0,
  this.dashLength = 4.0,
  this.dashColor = Colors.black,
  this.dashGradient,
  this.dashGapLength = 4.0,
  this.dashGapColor = Colors.transparent,
  this.dashGapGradient,
  this.dashRadius = 0.0,
  this.dashGapRadius = 0.0,
})  : assert(
          dashGradient == null || dashGradient.length == 2,
          'The dashGradient must have only two colors.\n'
          'The beginning color and the ending color of the gradient.'),
      assert(
          dashGapGradient == null || dashGapGradient.length == 2,
          'The dashGapGradient must have only two colors.\n'
          'The beginning color and the ending color of the gradient.'),
      super(key: key);