SWebView constructor

const SWebView({
  1. Key? key,
  2. String url = "https://flutter.dev",
  3. dynamic onError(
    1. String? error
    )?,
  4. VoidCallback? onIframeBlocked,
  5. bool autoDetectFrameRestrictions = true,
  6. List<String> corsProxyUrls = const ['https://api.codetabs.com/v1/proxy?quest=', 'https://cors.bridged.cc/', 'https://api.allorigins.win/raw?url='],
  7. 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,
});