previousStep method

Future<void> previousStep()

Implementation

Future<void> previousStep() async {
  _currentStep -= 1;

  _checkingPages = false;

  notifyListeners();

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