onPageViewChange method

void onPageViewChange(
  1. int _page
)

Implementation

void onPageViewChange(int _page) {
  page = _page;
  setState(() {});
}