next method

void next(
  1. BuildContext context
)

Implementation

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