CreationParams constructor
CreationParams({
- String? initialUrl,
- WebSettings? webSettings,
- Set<
String> javascriptChannelNames = const <String>{}, - String? userAgent,
- AutoMediaPlaybackPolicy autoMediaPlaybackPolicy = AutoMediaPlaybackPolicy.require_user_action_for_all_media_types,
- Color? backgroundColor,
- List<
WebViewCookie> cookies = const <WebViewCookie>[],
Constructs an instance to use when creating a new WebViewPlatformController.
The autoMediaPlaybackPolicy
parameter must not be null.
Implementation
CreationParams({
this.initialUrl,
this.webSettings,
this.javascriptChannelNames = const <String>{},
this.userAgent,
this.autoMediaPlaybackPolicy =
AutoMediaPlaybackPolicy.require_user_action_for_all_media_types,
this.backgroundColor,
this.cookies = const <WebViewCookie>[],
}) : assert(autoMediaPlaybackPolicy != null);