CreationParams constructor

CreationParams({
  1. String? initialUrl,
  2. WebSettings? webSettings,
  3. Set<String>? javascriptChannelNames,
  4. String? userAgent,
  5. AutoMediaPlaybackPolicy autoMediaPlaybackPolicy = AutoMediaPlaybackPolicy.require_user_action_for_all_media_types,
})

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,
  this.userAgent,
  this.autoMediaPlaybackPolicy =
      AutoMediaPlaybackPolicy.require_user_action_for_all_media_types,
}) : assert(autoMediaPlaybackPolicy != null);