MultiSegmentLinearIndicator constructor

const MultiSegmentLinearIndicator({
  1. Key? key,
  2. required List<LinearSegment> segments,
  3. double? width,
  4. double lineHeight = 20.0,
  5. Color backgroundColor = const Color(0xFFE0E0E0),
  6. BorderRadius? borderRadius,
  7. bool animation = false,
  8. int animationDuration = 500,
  9. Curve animationCurve = Curves.easeInOut,
  10. bool showLabels = false,
  11. LinearChildPosition labelPosition = LinearChildPosition.center,
  12. TextStyle? labelStyle,
  13. double segmentSpacing = 0.0,
  14. EdgeInsets padding = EdgeInsets.zero,
})

Creates a multi-segment linear indicator.

Implementation

// ignore: sort_constructors_first
const MultiSegmentLinearIndicator({
  super.key,
  required this.segments,
  this.width,
  this.lineHeight = 20.0,
  this.backgroundColor = const Color(0xFFE0E0E0),
  this.borderRadius,
  this.animation = false,
  this.animationDuration = 500,
  this.animationCurve = Curves.easeInOut,
  this.showLabels = false,
  this.labelPosition = LinearChildPosition.center,
  this.labelStyle,
  this.segmentSpacing = 0.0,
  this.padding = EdgeInsets.zero,
});