getCurrentPage method

Future<int> getCurrentPage()

Returns the current page that is shown.

The page index begins at 0.

Implementation

Future<int> getCurrentPage() async {
  final int currentPage = await _channel.invokeMethod('currentPage');
  return currentPage;
}