isLastStep property

bool get isLastStep

Returns true if the current step is the last one.

Implementation

bool get isLastStep {
  assert(_currentStepIndex >= 0, '🚩 Step index should not be negative');
  return _currentStepIndex == steps.length - 1;
}