DashDivider constructor

const DashDivider({
  1. Key? key,
  2. double height = 1,
  3. double dashWidth = 10,
  4. double dashSpace = 2,
  5. Color? color,
})

Creates a DashDivider widget.

The height parameter defines the height of the divider. The dashWidth parameter defines the width of each dash. The dashSpace parameter defines the space between each dash. The color parameter defines the color of the dashes.

Implementation

const DashDivider({
  super.key,
  this.height = 1,
  this.dashWidth = 10,
  this.dashSpace = 2,
  this.color,
})  : assert(dashWidth >= 1.0 && dashWidth <= 10.0),
      assert(dashSpace >= 1.0 && dashSpace <= 10.0);