setPage method
Jumping to the given page
.
By default, withAnimation
is true and takes 400ms to animate the page change.
Returns true if page change was possible.
Implementation
Future<bool> setPage({required int page, bool withAnimation = true}) async {
return await this._channel.invokeMethod('setPage', <String, dynamic>{
'page': page,
'withAnimation': withAnimation,
});
}