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;