CreationParams constructor

CreationParams({
  1. String? initialUrl,
  2. WebSettings? webSettings,
  3. Set<String> javascriptChannelNames = const <String>{},
  4. String? userAgent,
  5. AutoMediaPlaybackPolicy autoMediaPlaybackPolicy = AutoMediaPlaybackPolicy.require_user_action_for_all_media_types,
  6. Color? backgroundColor,
  7. 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);