setPage method

Future<bool> setPage({
  1. required int page,
  2. bool withAnimation = true,
})

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,
  });
}