FlutterWebviewPlugin class

Singleton class that communicate with a Webview Instance

Properties

hashCode int
The hash code for this object.
no setterinherited
onBack Stream<Null>
Listening the back key press Event for Android
no setter
onDestroy Stream<Null>
Listening the OnDestroy LifeCycle Event for Android
no setter
onHttpError Stream<WebViewHttpError>
no setter
onProgressChanged Stream<double>
Listening web view loading progress estimation, value between 0.0 and 1.0
no setter
onScrollXChanged Stream<double>
Listening web view x position scroll change
no setter
onScrollYChanged Stream<double>
Listening web view y position scroll change
no setter
onStateChanged Stream<WebViewStateChanged>
Listening the onState Event for iOS WebView and Android content is Map for type: {shouldStart(iOS)|startLoad|finishLoad} more detail than other events
no setter
onUrlChanged Stream<String>
Listening url changed
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canGoBack() Future<bool>
Checks if webview can navigate back
canGoForward() Future<bool>
Checks if webview can navigate back
cleanCookies() Future<void>
clearCache() Future<void>
close() Future<void>
Close the Webview Will trigger the onDestroy event
dispose() → void
Close all Streams
evalJavascript(String code) Future<String?>
Execute Javascript inside webview
getCookies() Future<Map<String, String>>
goBack() Future<void>
Navigates back on the Webview.
goForward() Future<void>
Navigates forward on the Webview.
hide() Future<void>
launch(String url, {Map<String, String>? headers, Set<JavascriptChannel> javascriptChannels = const <JavascriptChannel>{}, bool withJavascript = true, bool clearCache = false, bool clearCookies = false, bool mediaPlaybackRequiresUserGesture = true, bool hidden = false, bool enableAppScheme = true, Rect? rect, String? userAgent, bool withZoom = false, bool displayZoomControls = false, bool withLocalStorage = true, bool withLocalUrl = false, String? localUrlScope, bool withOverviewMode = false, bool scrollBar = true, bool supportMultipleWindows = false, bool appCacheEnabled = false, bool allowFileURLs = false, bool useWideViewPort = false, String? invalidUrlRegex, bool geolocationEnabled = false, bool debuggingEnabled = false, bool ignoreSSLErrors = false}) Future<void>
Start the Webview with url
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<void>
Reloads the WebView.
reloadUrl(String url, {Map<String, String>? headers}) Future<void>
resize(Rect rect) Future<void>
resize webview
show() Future<void>
stopLoading() Future<void>
toString() String
A string representation of this object.
inherited

Operators

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