ChromePermissions class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onAdded EventStream<Permissions>
Fired when the extension acquires new permissions.
no setter
onRemoved EventStream<Permissions>
Fired when access to permissions has been removed from the extension.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(Permissions permissions) Future<bool>
Checks if the extension has the specified permissions.
getAll() Future<Permissions>
Gets the extension's current set of permissions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(Permissions permissions) Future<bool>
Removes access to the specified permissions. If there are any problems removing the permissions, runtime.lastError will be set.
request(Permissions permissions) Future<bool>
Requests access to the specified permissions, displaying a prompt to the user if necessary. These permissions must either be defined in the optional_permissions field of the manifest or be required permissions that were withheld by the user. Paths on origin patterns will be ignored. You can request subsets of optional origin permissions; for example, if you specify *://*/* in the optional_permissions section of the manifest, you can request http://example.com/. If there are any problems requesting the permissions, runtime.lastError will be set.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited