goTo method
Navigates to a WebHistoryItem
from the back-forward WebHistory.list
and sets it as the current item.
NOTE for Web: this method will have effect only if the iframe has the same origin.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS
- MacOS
- Web
- Windows
Implementation
@override
Future<void> goTo({required WebHistoryItem historyItem}) async {
var steps = historyItem.offset;
if (steps != null) {
await goBackOrForward(steps: steps);
}
}