MethodChannelWebview class

An implementation of WebviewPlatform that uses method channels.

Inheritance

Constructors

MethodChannelWebview.new({MethodChannel? customMethodChannel})

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canGoBack() Future<bool>
override
clearCache() Future<void>
override
clearLocalStorage() Future<void>
override
evaluateJavascript(String script) Future<String>
override
getCurrentUrl() Future<String>
override
getUserAgent() Future<String>
override
getWebviewMethodChannel() MethodChannel
The method channel used to interact with the native platform.
override
goBack() Future<void>
override
loadHtmlAsset(String assetPath) Future<void>
override
loadHtmlString(String htmlString) Future<void>
override
loadUrl(String url) Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<void>
override
runJavaScript(String script) Future<String>
override
setUserAgent(String userAgent) Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

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