WebviewImpl class

Inheritance

Constructors

WebviewImpl(int viewId, MethodChannel channel)

Properties

channel MethodChannel
final
hashCode int
The hash code for this object.
no setterinherited
isNavigating ValueListenable<bool>
true if the webview is currently loading a page.
no setteroverride
onClose Future<void>
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
viewId int
final

Methods

addOnUrlRequestCallback(OnUrlRequestCallback callback) → void
override
addOnWebMessageReceivedCallback(OnWebMessageReceivedCallback callback) → void
override
addScriptToExecuteOnDocumentCreated(String javaScript) → void
override
back() Future<void>
Navigate to the previous page in the history.
override
close() → void
Close the web view window.
override
evaluateJavaScript(String javaScript) Future<String?>
evaluate JavaScript in the web view.
override
forward() Future<void>
Navigate to the next page in the history.
override
launch(String url) → void
Navigates to the given URL.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyUrlChanged(String url) → void
notifyWebMessageReceived(String message) → void
onClosed() → void
onHistoryChanged(bool canGoBack, bool canGoForward) → void
onJavaScriptMessage(String name, dynamic body) → void
onNavigationCompleted() → void
onNavigationStarted() → void
onRunJavaScriptTextInputPanelWithPrompt(String prompt, String defaultText) String
openDevToolsWindow() Future<void>
Opens the Browser DevTools in a separate window
override
postWebMessageAsJson(String webMessage) Future<void>
post a web message as JSON to the top level document in this WebView
override
postWebMessageAsString(String webMessage) Future<void>
post a web message as String to the top level document in this WebView
override
registerJavaScriptMessageHandler(String name, JavaScriptMessageHandler handler) → void
Install a message handler that you can call from your Javascript code.
override
reload() Future<void>
Reload the current page.
override
removeOnUrlRequestCallback(OnUrlRequestCallback callback) → void
override
removeOnWebMessageReceivedCallback(OnWebMessageReceivedCallback callback) → void
override
setApplicationNameForUserAgent(String applicationName) Future<void>
Append a string to the webview's user-agent.
override
setBrightness(Brightness? brightness) → void
change webview theme.
override
setOnHistoryChangedCallback(OnHistoryChangedCallback? callback) → void
Register a callback that will be invoked when the webview history changes.
override
setPromptHandler(PromptHandler? handler) → void
available: macOS
override
stop() Future<void>
Stop all navigations and pending resource fetches.
override
toString() String
A string representation of this object.
inherited
unregisterJavaScriptMessageHandler(String name) → void
available: macOS
override

Operators

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