setController method

void setController(
  1. PageController controller
)

Implementation

void setController(PageController controller) {
  pageController?.dispose();
  pageController = controller;
}