changePage method

void changePage(
  1. int downLimit,
  2. int upLimit,
  3. bool? downState,
  4. bool? upState,
)

Implementation

void changePage(int downLimit, int upLimit, bool? downState, bool? upState) {
  _pageLimit
    ..downLimit = downLimit
    ..upLimit = upLimit;

  if (downState != null && upState != null) {
    _enableState
      ..downState = downState
      ..upState = upState;
  }

  notifyListeners();
}