WebviewPlatformInterface class abstract
Abstract base class for the Webview platform interface.
- Inheritance
-
- Object
- PlatformInterface
- WebviewPlatformInterface
- Implementers
Constructors
- WebviewPlatformInterface.new({MethodChannel? customMethodChannel})
- Constructs a WebviewPlatformInterface.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canGoBack(
) → Future< bool> -
clearCache(
) → Future< void> -
clearLocalStorage(
) → Future< void> -
evaluateJavascript(
String script) → Future< String> -
getCurrentUrl(
) → Future< String> -
getUserAgent(
) → Future< String> -
getWebviewMethodChannel(
) → MethodChannel -
goBack(
) → Future< void> -
loadHtmlAsset(
String assetPath) → Future< void> -
loadHtmlString(
String htmlString) → Future< void> -
loadUrl(
String url) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
) → Future< void> -
runJavaScript(
String script) → Future< String> -
setUserAgent(
String userAgent) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ WebviewPlatformInterface
-
The default instance of WebviewPlatformInterface to use.
getter/setter pair