DottedLine constructor
const
DottedLine({
- Key? key,
- Axis direction = Axis.horizontal,
- WrapAlignment alignment = WrapAlignment.center,
- double lineLength = double.infinity,
- double lineThickness = 1.0,
- double dashLength = 4.0,
- Color dashColor = Colors.black,
- List<
Color> ? dashGradient, - double dashGapLength = 4.0,
- Color dashGapColor = Colors.transparent,
- List<
Color> ? dashGapGradient, - double dashRadius = 0.0,
- 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);