WebViewLinuxPlatformController class

Constructors

WebViewLinuxPlatformController({required WebViewPlatformCallbacksHandler callbacksHandler, required JavascriptChannelRegistry javascriptChannelRegistry, required CreationParams creationParams})

Properties

callbacksHandler → WebViewPlatformCallbacksHandler
final
hashCode int
The hash code for this object.
no setterinherited
javascriptChannelRegistry → JavascriptChannelRegistry
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addJavascriptChannels(Set<String> javascriptChannelNames) Future<void>
Not implemented on Linux. Will be supported in the future.
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>
Not supported on Linux because the underlying browser does not provide such a feature.
currentUrl() Future<String?>
Accessor to the current URL that the WebView is displaying.
evaluateJavascript(String javascript) Future<String>
Evaluates a JavaScript expression in the context of the current page.
getScrollX() Future<int>
Not implemented on Linux. Will be supported in the future.
getScrollY() Future<int>
Not implemented on Linux. Will be supported in the future.
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.
loadFile(String absoluteFilePath) Future<void>
See WebViewController.loadFile or WebViewPlatformController.loadFile.
loadFlutterAsset(String key) Future<void>
See WebViewController.loadFlutterAsset or WebViewPlatformController.loadFlutterAsset.
loadHtmlString(String html, {String? baseUrl}) Future<void>
See WebViewController.loadHtmlString or WebViewPlatformController.loadHtmlString.
loadRequest(WebViewRequest request) Future<void>
See WebViewController.loadRequest or WebViewPlatformController.loadRequest.
loadUrl(String url, Map<String, String>? headers) Future<void>
See WebViewController.loadUrl or WebViewPlatformController.loadUrl.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<void>
Reloads the current URL.
removeJavascriptChannels(Set<String> javascriptChannelNames) Future<void>
Not implemented on Linux. Will be supported in the future.
runJavascript(String javascript) Future<void>
Runs the given JavaScript in the context of the current page.
runJavascriptReturningResult(String javascript) Future<String>
See WebViewController.runJavascriptReturningResult or WebViewPlatformController.runJavascriptReturningResult.
scrollBy(int x, int y) Future<void>
Not implemented on Linux. Will be supported in the future.
scrollTo(int x, int y) Future<void>
Not implemented on Linux. Will be supported in the future.
toString() String
A string representation of this object.
inherited
updateSettings(WebSettings setting) Future<void>
Updates the webview settings.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instanceManager → InstanceManager
final

Static Methods

onMethodCall(MethodCall call) Future<bool?>
An internal property that users should not use. A handler that handles method calls coming from the native side.