AdBlockerWebviewController class abstract

The controller for AdBlockerWebview. Below is and Example of getting a singleton instance:

   final _adBlockerWebviewController = AdBlockerWebviewController.instance;

It's better to warm up the controller before displaying the webview. It's possible to do that by:

  @override
  void initState() {
    super.initState();
    _adBlockerWebviewController.initialize();
    /// ... Other code here.
  }

ignore_for_file: avoid-late-keyword ignore_for_file: avoid-non-null-assertion

Properties

bannedHost UnmodifiableListView<Host>
Returns the banned host list. This list items are populated after calling the initialize method
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canGoBack() Future<bool>
Returns decision of if the webview can go back
canGoForward() Future<bool>
Returns decision of if he webview can go forward
goBack() Future<void>
Navigates webview to previous page
goForward() Future<void>
Navigates the webview to forward page
initialize() Future<void>
Initializes the controller
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<void>
Reloads the current page
setInternalController(InAppWebViewController controller) → void
Sets inAppWebviewController to be used in future Typically not to be used by third parties
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance AdBlockerWebviewController
Returns an implementation of this class
no setter