goTo method

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

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

Implementation

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