canGoForward method
Checks whether there's a forward history item.
Implementation
@override
Future<bool> canGoForward() async {
if (jsBridge.hasReady) {
final int length =
await jsBridge.evalJavaScript<int>('window.history.length');
print('canGoForward: $length');
return length > 0;
} else {
return false;
}
}