setPageWithAnimation method
Jumping to page
with an animation.
Only working for Android. For iOS, the method setPage will be used.
Implementation
Future<void> setPageWithAnimation({required int page}) async {
if (defaultTargetPlatform == TargetPlatform.android) {
await _channel.invokeMethod('setPageWithAnimation', <String, dynamic>{
'page': page,
});
} else {
await setPage(page: page);
}
}