prev method

void prev()

Moves to the previous page in the sequence.

Implementation

void prev() {
  final prevIndex = currentIndex - 1;
  if (_validateOnPageChange(prevIndex)) {
    setPage(prevIndex, true); // Move to the previous page without animation
  }
}