isLastStep method

bool isLastStep()

Check if this is the last step

Implementation

bool isLastStep() {
  final currentStep = getCurrentStep();
  final totalSteps = getTotalSteps();
  return currentStep >= totalSteps - 1;
}