currentPage property

int get currentPage

The index of the currently visible page.

Implementation

int get currentPage => _state?._pageController.page?.round() ?? 0;