isPageInScreen method
Gets whether the specified pageIndex
is displayed on the screen
example:
bool isPageInScreen = await _controller.isPageInScreen(1);
Implementation
Future<bool> isPageInScreen(int pageIndex) async {
assert(Platform.isAndroid, 'This method is only supported on Android');
return await _channel.invokeMethod('is_page_in_screen', pageIndex);
}