WebViewController class
Controls a WebView
.
A WebViewController instance can be obtained by setting the WebView.onWebViewCreated
callback for a WebView
widget.
Constructors
- WebViewController(WebViewElement _element, WebViewPlatformController _webViewPlatformController, _PlatformCallbacksHandler? _platformCallbacksHandler)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canGoBack(
) → Future< bool?> - Checks whether there's a back history item.
-
canGoForward(
) → Future< bool?> - Checks whether there's a forward history item.
-
clearCache(
) → Future< void> -
Clears all caches used by the
WebView
. -
currentUrl(
) → Future< String?> - Accessor to the current URL that the WebView is displaying.
-
evaluateJavascript(
String javascriptString) → Future< String?> - Evaluates a JavaScript expression in the context of the current page.
-
getTitle(
) → Future< String?> - Returns the title of the currently loaded page.
-
goBack(
) → Future< void> - Goes back in the history of this WebView.
-
goForward(
) → Future< void> - Goes forward in the history of this WebView.
-
loadUrl(
String url, {Map< String, String> ? headers}) → Future<void> - Loads the specified URL.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
) → Future< void> - Reloads the current URL.
-
setupJSBridge(
) → Future< void> -
teardownJSBridge(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited