pageController property

PageController pageController
final

Implementation

final pageController = PageController(
  initialPage: 0,
  // if the viewportFraction is 1.0, the child pages will rebuild automatically
  // but if it less than 1.0, the pages will stay alive
  viewportFraction: 0.9999999,
);