ContentSecurityPolicyDirective class

A class representing a single CSP directive.

Constructors

ContentSecurityPolicyDirective({required String name, required Iterable<String> values})
Constructs a ContentSecurityPolicyDirective instance with the specified name and values.

Properties

hashCode → int
The hash code for this object.
no setteroverride
name → String
The name of the directive (e.g., default-src, script-src).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Iterable<String>
The values associated with the directive (e.g., 'self', https://example.com).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override