CreationParams constructor

CreationParams({
  1. String? initialUrl,
  2. String? htmlData,
  3. WebSettings? webSettings,
  4. Set<String> javascriptChannelNames = const <String>{},
  5. String? userAgent,
  6. AutoMediaPlaybackPolicy autoMediaPlaybackPolicy = AutoMediaPlaybackPolicy.require_user_action_for_all_media_types,
  7. bool isOnlyChromeUserAgent = false,
})

Constructs an instance to use when creating a new WebViewPlatformController.

The autoMediaPlaybackPolicy parameter must not be null.

Implementation

CreationParams({
  this.initialUrl,
  this.htmlData,
  this.webSettings,
  this.javascriptChannelNames = const <String>{},
  this.userAgent,
  this.autoMediaPlaybackPolicy = AutoMediaPlaybackPolicy.require_user_action_for_all_media_types,
  this.isOnlyChromeUserAgent = false,
});