WebSettings constructor

WebSettings(
  1. {JavascriptMode? javascriptMode,
  2. bool? hasNavigationDelegate,
  3. bool? hasProgressTracking,
  4. bool? debuggingEnabled,
  5. bool? gestureNavigationEnabled,
  6. bool? allowsInlineMediaPlayback,
  7. required WebSetting<String?> userAgent}
)

Construct an instance with initial settings. Future setting changes can be sent with WebviewPlatform#updateSettings.

The userAgent parameter must not be null.

Implementation

WebSettings({
  this.javascriptMode,
  this.hasNavigationDelegate,
  this.hasProgressTracking,
  this.debuggingEnabled,
  this.gestureNavigationEnabled,
  this.allowsInlineMediaPlayback,
  required this.userAgent,
}) : assert(userAgent != null);