WebSettings constructor

WebSettings({
  1. JavascriptMode? javascriptMode,
  2. bool? hasNavigationDelegate,
  3. bool? debuggingEnabled,
  4. bool? gestureNavigationEnabled,
  5. 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.debuggingEnabled,
  this.gestureNavigationEnabled,
  required this.userAgent,
}) : assert(userAgent != null);