TutorialStepWithWaiting constructor
TutorialStepWithWaiting({
- required TutorialID tutorialID,
- dynamic loadFromRepository()?,
- Duration? duration,
- TutorialStep? replayStep,
- void onFinished()?,
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;