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.

NOTE for Web: this method will have effect only if the iframe has the same origin.

Officially Supported Platforms/Implementations:

Implementation

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