currentPage property
int
currentPage
Returns the current page index (not only photo pages) of the gallery.
Implementation
int get currentPage => _controller.hasClients ? _controller.page!.floor() : 0;
Returns the current page index (not only photo pages) of the gallery.
int get currentPage => _controller.hasClients ? _controller.page!.floor() : 0;