RuleCondition class

Constructors

RuleCondition({String? urlFilter, String? regexFilter, bool? isUrlFilterCaseSensitive, List<String>? initiatorDomains, List<String>? excludedInitiatorDomains, List<String>? requestDomains, List<String>? excludedRequestDomains, List<String>? domains, List<String>? excludedDomains, List<ResourceType>? resourceTypes, List<ResourceType>? excludedResourceTypes, List<RequestMethod>? requestMethods, List<RequestMethod>? excludedRequestMethods, DomainType? domainType, List<int>? tabIds, List<int>? excludedTabIds, List<HeaderInfo>? responseHeaders, List<String>? excludedResponseHeaders})
RuleCondition.fromJS(RuleCondition _wrapped)

Properties

domains List<String>?
The rule will only match network requests originating from the list of domains.
getter/setter pair
domainType DomainType?
Specifies whether the network request is first-party or third-party to the domain from which it originated. If omitted, all requests are accepted.
getter/setter pair
excludedDomains List<String>?
The rule will not match network requests originating from the list of excludedDomains.
getter/setter pair
excludedInitiatorDomains List<String>?
The rule will not match network requests originating from the list of excludedInitiatorDomains. If the list is empty or omitted, no domains are excluded. This takes precedence over initiatorDomains.
getter/setter pair
excludedRequestDomains List<String>?
The rule will not match network requests when the domains matches one from the list of excludedRequestDomains. If the list is empty or omitted, no domains are excluded. This takes precedence over requestDomains.
getter/setter pair
excludedRequestMethods List<RequestMethod>?
List of request methods which the rule won't match. Only one of requestMethods and excludedRequestMethods should be specified. If neither of them is specified, all request methods are matched.
getter/setter pair
excludedResourceTypes List<ResourceType>?
List of resource types which the rule won't match. Only one of resourceTypes and excludedResourceTypes should be specified. If neither of them is specified, all resource types except "main_frame" are blocked.
getter/setter pair
excludedResponseHeaders List<String>?
Rule does not match if the request has any of the specified headers. TODO(crbug,com/1141166): Add documentation once feature is complete.
getter/setter pair
excludedTabIds List<int>?
List of tabs.Tab.id which the rule should not match. An ID of tabs.TAB_ID_NONE excludes requests which don't originate from a tab. Only supported for session-scoped rules.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
initiatorDomains List<String>?
The rule will only match network requests originating from the list of initiatorDomains. If the list is omitted, the rule is applied to requests from all domains. An empty list is not allowed.
getter/setter pair
isUrlFilterCaseSensitive bool?
Whether the urlFilter or regexFilter (whichever is specified) is case sensitive. Default is false.
getter/setter pair
regexFilter String?
Regular expression to match against the network request url. This follows the RE2 syntax.
getter/setter pair
requestDomains List<String>?
The rule will only match network requests when the domain matches one from the list of requestDomains. If the list is omitted, the rule is applied to requests from all domains. An empty list is not allowed.
getter/setter pair
requestMethods List<RequestMethod>?
List of HTTP request methods which the rule can match. An empty list is not allowed.
getter/setter pair
resourceTypes List<ResourceType>?
List of resource types which the rule can match. An empty list is not allowed.
getter/setter pair
responseHeaders List<HeaderInfo>?
Rule matches if the request matches any response header in this list (if specified). TODO(crbug,com/1141166): Add documentation once feature is complete.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabIds List<int>?
List of tabs.Tab.id which the rule should match. An ID of tabs.TAB_ID_NONE matches requests which don't originate from a tab. An empty list is not allowed. Only supported for session-scoped rules.
getter/setter pair
toJS → RuleCondition
no setter
urlFilter String?
The pattern which is matched against the network request url. Supported constructs:
getter/setter pair

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