TutorialStepWithWaiting constructor

TutorialStepWithWaiting({
  1. required TutorialID tutorialID,
  2. dynamic loadFromRepository()?,
  3. Duration? duration,
  4. TutorialStep? replayStep,
  5. void onFinished(
    1. TutorialBloc?
    )?,
})

Creates a TutorialStepWithWaiting with the given parameters.

If duration is not provided, it defaults to Constants.defaultConditionTimeout. If onFinished is not provided, it defaults to TutorialBloc.nextStep.

Implementation

TutorialStepWithWaiting(
    {required super.tutorialID,
    super.loadFromRepository,
    Duration? duration,
    this.replayStep,
    void Function(TutorialBloc?)? onFinished})
    : onFinished = onFinished ?? TutorialBloc.nextStep,
      timeout = duration ?? Constants.defaultConditionTimeout;