previousPage method

void previousPage()

Moves to the previous page if not already on the first page.

The call is a no-op when already on page 0. Notifies listeners if the page changed.

Implementation

void previousPage() {
  if (_currentPage <= 0) return;
  _currentPage--;
  notifyListeners();
}