SegmentedProgressBar constructor

const SegmentedProgressBar({
  1. Key? key,
  2. required int segmentCount,
  3. required int currentIndex,
  4. double? progress,
  5. Duration duration = const Duration(seconds: 5),
  6. VoidCallback? onComplete,
  7. double height = 3,
  8. double spacing = 4,
  9. Color? activeColor,
  10. Color? pendingColor,
  11. bool autoPlay = false,
  12. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(2)),
})

Implementation

const SegmentedProgressBar({
  super.key,
  required this.segmentCount,
  required this.currentIndex,
  this.progress,
  this.duration = const Duration(seconds: 5),
  this.onComplete,
  this.height = 3,
  this.spacing = 4,
  this.activeColor,
  this.pendingColor,
  this.autoPlay = false,
  this.borderRadius = const BorderRadius.all(Radius.circular(2)),
});