goTo method Null safety

Future<void> goTo(
  1. {required WebHistoryItem historyItem}
)

Navigates to a WebHistoryItem from the back-forward WebHistory.list and sets it as the current item.

Supported Platforms/Implementations:

  • Android native WebView
  • iOS

Implementation

Future<void> goTo({required WebHistoryItem historyItem}) async {
  var steps = historyItem.offset;
  if (steps != null) {
    await goBackOrForward(steps: steps);
  }
}