Dart Documentationchrome.proxyPacScript

PacScript class

An object holding proxy auto-config information. Exactly one of the fields should be non-empty.

class PacScript extends ChromeObject {
 PacScript({String url, String data, bool mandatory}) {
   if (url != null) this.url = url;
   if (data != null) this.data = data;
   if (mandatory != null) this.mandatory = mandatory;
 }
 PacScript.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * URL of the PAC file to be used.
  */
 String get url => this.jsProxy['url'];
 set url(String value) => this.jsProxy['url'] = value;

 /**
  * A PAC script.
  */
 String get data => this.jsProxy['data'];
 set data(String value) => this.jsProxy['data'] = value;

 /**
  * If true, an invalid PAC script will prevent the network stack from falling
  * back to direct connections. Defaults to false.
  */
 bool get mandatory => this.jsProxy['mandatory'];
 set mandatory(bool value) => this.jsProxy['mandatory'] = value;
}

Extends

ChromeObject > PacScript

Constructors

new PacScript({String url, String data, bool mandatory}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
PacScript({String url, String data, bool mandatory}) {
 if (url != null) this.url = url;
 if (data != null) this.data = data;
 if (mandatory != null) this.mandatory = mandatory;
}

new PacScript.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
PacScript.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

String data #

A PAC script.

String get data => this.jsProxy['data'];
set data(String value) => this.jsProxy['data'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

bool mandatory #

If true, an invalid PAC script will prevent the network stack from falling back to direct connections. Defaults to false.

bool get mandatory => this.jsProxy['mandatory'];
set mandatory(bool value) => this.jsProxy['mandatory'] = value;

String url #

URL of the PAC file to be used.

String get url => this.jsProxy['url'];
set url(String value) => this.jsProxy['url'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();