SWebView constructor
const
SWebView({
- Key? key,
- String url = "https://flutter.dev",
- dynamic onError(
- String? error
- VoidCallback? onIframeBlocked,
- bool autoDetectFrameRestrictions = true,
- List<
String> corsProxyUrls = const ['https://api.codetabs.com/v1/proxy?quest=', 'https://cors.bridged.cc/', 'https://api.allorigins.win/raw?url='], - bool showToolbar = kIsWeb,
Implementation
const SWebView({
super.key,
this.url = "https://flutter.dev",
this.onError,
this.onIframeBlocked,
this.autoDetectFrameRestrictions = /* kIsWeb ? true : false */ true,
this.corsProxyUrls = const [
'https://api.codetabs.com/v1/proxy?quest=',
'https://cors.bridged.cc/',
'https://api.allorigins.win/raw?url=',
],
this.showToolbar = kIsWeb,
});