Dart Documentationchrome.permissionsPermissions

Permissions class

class Permissions extends ChromeObject {
 Permissions({List<String> permissions, List<String> origins}) {
   if (permissions != null) this.permissions = permissions;
   if (origins != null) this.origins = origins;
 }
 Permissions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * List of named permissions (does not include hosts or origins).
  */
 List<String> get permissions => listify(jsProxy['permissions']);
 set permissions(List<String> value) => jsProxy['permissions'] = jsify(value);

 /**
  * List of origin permissions.
  */
 List<String> get origins => listify(jsProxy['origins']);
 set origins(List<String> value) => jsProxy['origins'] = jsify(value);
}

Extends

ChromeObject > Permissions

Constructors

new Permissions({List<String> permissions, List<String> origins}) #

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

docs inherited from ChromeObject
Permissions({List<String> permissions, List<String> origins}) {
 if (permissions != null) this.permissions = permissions;
 if (origins != null) this.origins = origins;
}

new Permissions.fromProxy(JsObject jsProxy) #

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

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

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

List<String> origins #

List of origin permissions.

List<String> get origins => listify(jsProxy['origins']);
set origins(List<String> value) => jsProxy['origins'] = jsify(value);

List<String> permissions #

List of named permissions (does not include hosts or origins).

List<String> get permissions => listify(jsProxy['permissions']);
set permissions(List<String> value) => jsProxy['permissions'] = jsify(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();