goBackOrForward method

Future<void> goBackOrForward({
  1. required int steps,
})

Goes to the history item that is the number of steps away from the current item. Steps is negative if backward and positive if forward.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • steps: all platforms

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> goBackOrForward({required int steps}) =>
    platform.goBackOrForward(steps: steps);