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