SeniorProgressBar constructor

const SeniorProgressBar({
  1. Key? key,
  2. required int currentStep,
  3. bool showCurrentStep = false,
  4. SeniorProgressBarStyle? style,
  5. String? subtitle,
  6. String? title,
  7. required int totalSteps,
})

Creates the SDS ProgressBar component.

The currentStep and totalSteps parameters are required.

Implementation

const SeniorProgressBar({
  Key? key,
  required this.currentStep,
  this.showCurrentStep = false,
  this.style,
  this.subtitle,
  this.title,
  required this.totalSteps,
})  : assert(currentStep <= totalSteps),
      assert(title != null && subtitle != null ||
          title == null && subtitle == null),
      super(key: key);