WebViewXController<T> class abstract

Interface for controller

Constructors

WebViewXController()

Properties

connector ↔ T
Cross-platform webview connector
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ignoresAllGestures bool
Boolean getter which reveals if the gestures are ignored right now
no setter
isCurrentContentHTML bool
Returns true if the webview's current content is HTML
no setter
isCurrentContentURL bool
Returns true if the webview's current content is URL
no setter
isCurrentContentURLBypass bool
Returns true if the webview's current content is URL, and if SourceType is SourceType.urlBypass, which means it should use the bypass to fetch the web page content.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

callJsMethod(String name, List params) Future
This function allows you to call Javascript functions defined inside the webview.
canGoBack() Future<bool>
Returns a Future that completes with the value true, if you can go back in the history stack.
canGoForward() Future<bool>
Returns a Future that completes with the value true, if you can go forward in the history stack.
clearCache() Future<void>
Clears cache
dispose() → void
Dispose resources
evalRawJavascript(String rawJavascript, {bool inGlobalContext = false}) Future
This function allows you to evaluate 'raw' javascript (e.g: 2+2) If you need to call a function you should use the method above (callJsMethod)
getContent() Future<WebViewContent>
Returns the current content
getScrollX() Future<int>
Get scroll position on X axis
getScrollY() Future<int>
Get scroll position on Y axis
getTitle() Future<String?>
Retrieves the inner page title
goBack() Future<void>
Go back in the history stack.
goForward() Future<void>
Go forward in the history stack.
loadContent(String content, SourceType sourceType, {Map<String, String>? headers, Object? body, bool fromAssets = false}) Future<void>
Set webview content to the specified content. Example: https://flutter.dev/ Example2: '
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<void>
Reload the current content.
scrollBy(int x, int y) Future<void>
Scrolls by x on X axis and by y on Y axis
scrollTo(int x, int y) Future<void>
Scrolls exactly to the position (x, y)
setIgnoreAllGestures(bool value) → void
Function to set ignoring gestures
toString() String
A string representation of this object.
inherited

Operators

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