NetPermissionDescriptor class
The permission descriptor for the allow-net
and deny-net
permissions, which controls
access to opening network ports and connecting to remote hosts via the
network. The option host
allows scoping the permission for outbound
connection to a specific host and port.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
- NetPermissionDescriptor({String? name, String? host})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- host ↔ String?
-
Available on NetPermissionDescriptor, provided by the NetPermissionDescriptor$Typings extension
Optional host string of the form"<hostname>[:<port>]"
. Examples:getter/setter pair - name ↔ String
-
Available on NetPermissionDescriptor, provided by the NetPermissionDescriptor$Typings extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited