previousStepItem property

SurveyStep? get previousStepItem

Returns the previous step in the survey, or null if the current step is the first step.

Implementation

SurveyStep? get previousStepItem {
  return isFirstStep ? null : steps[currentStepIndex - 1];
}