goToNextPage method

Future<bool> goToNextPage({
  1. bool withAnimation = true,
})

Goes to the next page.

By default, withAnimation is true and takes 400ms to animate the page change. Returns true if page change was possible.

Implementation

Future<bool> goToNextPage({bool withAnimation = true}) async {
  return await this._channel.invokeMethod(
    'nextPage',
    {'withAnimation': withAnimation},
  );
}