startFrom method

Future<void> startFrom(
  1. int stepIndex
)

Start the tour from a specific step

Implementation

Future<void> startFrom(int stepIndex) async {
  if (stepIndex < 0 || stepIndex >= steps.length) return;
  if (startDelay != null) {
    await Future.delayed(startDelay!);
  }
  _currentStepIndex = stepIndex;
  _isRunning = true;
  _showStep();
}