SWebView constructor
const
SWebView({
- Key? key,
- String url = "https://flutter.dev",
- WebViewController? controller,
- SWebViewConfig config = const SWebViewConfig(),
- dynamic onError(
- String? error
- VoidCallback? onLoaded,
- VoidCallback? onIframeBlocked,
- bool autoDetectFrameRestrictions = true,
- List<
String> corsProxyUrls = const [], - bool showToolbar = kIsWeb,
- bool showDebugLogs = false,
- bool ignorePointerEvents = false,
- ValueChanged<
int> ? onProgress, - ValueChanged<
Uri> ? onPageStarted, - ValueChanged<
Uri> ? onUrlChanged, - ValueChanged<
Uri> ? onPageFinished, - 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,
});