SWebView constructor

const SWebView({
  1. Key? key,
  2. String url = "https://flutter.dev",
  3. WebViewController? controller,
  4. SWebViewConfig config = const SWebViewConfig(),
  5. dynamic onError(
    1. String? error
    )?,
  6. VoidCallback? onLoaded,
  7. VoidCallback? onIframeBlocked,
  8. bool autoDetectFrameRestrictions = true,
  9. List<String> corsProxyUrls = const [],
  10. bool showToolbar = kIsWeb,
  11. bool showDebugLogs = false,
  12. bool ignorePointerEvents = false,
  13. ValueChanged<int>? onProgress,
  14. ValueChanged<Uri>? onPageStarted,
  15. ValueChanged<Uri>? onUrlChanged,
  16. ValueChanged<Uri>? onPageFinished,
  17. SWebViewNavigationRequestCallback? onNavigationRequest,
  18. ValueChanged<String>? onJavaScriptMessage,
})

Implementation

const SWebView({
  super.key,
  this.url = "https://flutter.dev",
  this.controller,
  this.config = const SWebViewConfig(),
  this.onError,
  this.onLoaded,
  this.onIframeBlocked,
  this.autoDetectFrameRestrictions = /* kIsWeb ? true : false */ true,
  this.corsProxyUrls = const [],
  this.showToolbar = kIsWeb,
  this.showDebugLogs = false,
  this.ignorePointerEvents = false,
  this.onProgress,
  this.onPageStarted,
  this.onUrlChanged,
  this.onPageFinished,
  this.onNavigationRequest,
  this.onJavaScriptMessage,
});