jumpToPage method

Future<void> jumpToPage(
  1. int pageNumber
)

Implementation

Future<void> jumpToPage(int pageNumber) async {
  _currentStep = pageNumber;

  notifyListeners();

  await _pageController.animateToPage(
    _currentStep,
    duration: const Duration(milliseconds: 250),
    curve: Curves.ease,
  );
}