getCurrentPage method

Future<int?> getCurrentPage()

Returns the zero-based index of the page that is currently displayed.

Implementation

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