currentDisplayedStep property

QuizStepModel get currentDisplayedStep

Returns the currently displayed step model. Asserts if the current step index is out of range.

Implementation

QuizStepModel get currentDisplayedStep {
  assert(_currentStepIndex >= 0 && _currentStepIndex < steps.length, 'Current step index $_currentStepIndex is out of bounds (0..${steps.length - 1})');
  return steps[_currentStepIndex];
}