EJStepper constructor
const
EJStepper({
- Key? key,
- required List<
EJStep> steps, - ScrollPhysics? scrollPhysics,
- ValueChanged<
int> ? onStepTapped, - ValueChanged<
int> ? onStepNext, - ValueChanged<
int> ? onStepBack, - VoidCallback? onLastStepConfirmTap,
- int? currentStep,
- Widget backButtonBuilder(
- VoidCallback onBackPressed,
- Widget child,
- int index
- Widget nextButtonBuilder(
- VoidCallback onNextPressed,
- Widget child,
- int index
- Color? leadingActiveColor,
- Color? leadingInActiveColor,
- Color? leadingDisableColor,
- Color? leadingErrorColor,
- Color? leadingCompleteColor,
- EdgeInsets stepsMargin = _stepsMargin,
Implementation
const EJStepper({
Key? key,
required this.steps,
this.scrollPhysics,
this.onStepTapped,
this.onStepNext,
this.onStepBack,
this.onLastStepConfirmTap,
this.currentStep,
this.backButtonBuilder,
this.nextButtonBuilder,
this.leadingActiveColor,
this.leadingInActiveColor,
this.leadingDisableColor,
this.leadingErrorColor,
this.leadingCompleteColor,
this.stepsMargin = _stepsMargin,
}) : assert(currentStep == null ||
(0 <= currentStep && currentStep < steps.length)),
super(key: key);