AdBlockerWebview constructor
const
AdBlockerWebview({})
Implementation
const AdBlockerWebview({
required this.adBlockerWebviewController,
required this.shouldBlockAds,
this.url,
this.initialHtmlData,
this.onLoadStart,
this.onLoadFinished,
this.onProgress,
this.onLoadError,
this.onUrlChanged,
super.key,
}) : assert(
url != null || initialHtmlData != null,
'Either url or initialHtmlData must be provided',
),
assert(
!(url != null && initialHtmlData != null),
'Cannot provide both url and initialHtmlData',
);