previous method

void previous(
  1. BuildContext context
)

Implementation

void previous(BuildContext context) async {
  if (_hasPrevious()) {
    final currentIndex =
    _currentWorkflow!.screenSequence.indexOf(_currentScreenId!);
    _currentScreenId = _currentWorkflow!.screenSequence[currentIndex - 1];
  }
  Navigator.maybePop(context);
}