StepPageIndicator constructor

StepPageIndicator({
  1. Key? key,
  2. required ValueNotifier<int> currentPageNotifier,
  3. required int itemCount,
  4. ValueChanged<int>? onPageSelected,
  5. double size = _defaultSize,
  6. double stepSpacing = _defaultSpacing,
  7. Color? stepColor,
  8. Widget? previousStep,
  9. Widget? selectedStep,
  10. Widget? nextStep,
})

Implementation

StepPageIndicator({
  Key? key,
  required this.currentPageNotifier,
  required this.itemCount,
  this.onPageSelected,
  this.size = _defaultSize,
  this.stepSpacing = _defaultSpacing,
  Color? stepColor,
  this.previousStep,
  this.selectedStep,
  this.nextStep,
})  : this.stepColor = stepColor ?? _defaultStepColor,
      assert(size >= 0, "size must be a positive number"),
      super(key: key);