AdBlockerWebview constructor

const AdBlockerWebview({
  1. required Uri url,
  2. required AdBlockerWebviewController adBlockerWebviewController,
  3. required bool shouldBlockAds,
  4. Key? key,
  5. void onLoadStart(
    1. InAppWebViewController controller,
    2. Uri? uri
    )?,
  6. void onLoadFinished(
    1. InAppWebViewController controller,
    2. Uri? uri
    )?,
  7. void onProgress(
    1. int progress
    )?,
  8. void onLoadError(
    1. InAppWebViewController controller,
    2. Uri? url,
    3. int code,
    4. String message,
    )?,
  9. void onTitleChanged(
    1. InAppWebViewController controller,
    2. String? title
    )?,
  10. InAppWebViewGroupOptions? options,
  11. List<Host> additionalHostsToBlock = const [],
})

Implementation

const AdBlockerWebview({
  required this.url,
  required this.adBlockerWebviewController,
  required this.shouldBlockAds,
  super.key,
  this.onLoadStart,
  this.onLoadFinished,
  this.onProgress,
  this.onLoadError,
  this.onTitleChanged,
  this.options,
  this.additionalHostsToBlock = const [],
});