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<Null>
clearCache() Future<Null>
close() Future<Null>
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<Null>
Navigates back on the Webview.
goForward() Future<Null>
Navigates forward on the Webview.
hide() Future<Null>
launch(String url, {Map<String, String>? headers, Set<JavascriptChannel>? javascriptChannels, bool? withJavascript, bool? clearCache, bool? clearCookies, bool? mediaPlaybackRequiresUserGesture, bool? hidden, bool? enableAppScheme, Rect? rect, String? userAgent, bool? withZoom, bool? displayZoomControls, bool? withLocalStorage, bool? withLocalUrl, String? localUrlScope, bool? withOverviewMode, bool? scrollBar, bool? supportMultipleWindows, bool? appCacheEnabled, bool? allowFileURLs, bool? useWideViewPort, String? invalidUrlRegex, bool? geolocationEnabled, bool? debuggingEnabled, bool? ignoreSSLErrors}) Future<Null>
Start the Webview with url
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<Null>
Reloads the WebView.
reloadUrl(String url, {Map<String, String>? headers}) Future<Null>
resize(Rect? rect) Future<Null>
resize webview
show() Future<Null>
stopLoading() Future<Null>
toString() String
A string representation of this object.
inherited

Operators

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