next method

void next()

Moves to the next page if the current page is less than the total number of pages.

Implementation

void next() {
  if (_rawValue < pages - 1) {
    _rawValue++;
  }
}