setLoadingFunction method

  1. @override
WaitForContextTutorialStep setLoadingFunction({
  1. required TutorialRepository tutorialRepository,
})
override

Sets the loading function for this step using the provided tutorialRepository.

Implementation

@override
WaitForContextTutorialStep setLoadingFunction({required TutorialRepository tutorialRepository}) {
  return WaitForContextTutorialStep(
      tutorialID: tutorialID,
      loadFromRepository: () => tutorialRepository.get(tutorialID),
      duration: timeout,
      replayStep: replayStep,
      onFinished: onFinished);
}