next method
Implementation
void next(BuildContext context) {
if (_hasNext()) {
final currentIndex =
_currentWorkflow!.screenSequence.indexOf(_currentScreenId!);
_currentScreenId = _currentWorkflow!.screenSequence[currentIndex + 1];
_navigateToNewScreen(context);
}else{
_navigateToRootScreen(context);
}
}