PageStateMatcher constructor
PageStateMatcher({
- UrlFilter? pageUrl,
- List<
String> ? css, - bool? isBookmarked,
- required PageStateMatcherInstanceType instanceType,
Implementation
PageStateMatcher({
/// Matches if the conditions of the `UrlFilter` are fulfilled for the
/// top-level URL of the page.
UrlFilter? pageUrl,
/// Matches if all of the CSS selectors in the array match displayed
/// elements in a frame with the same origin as the page's main frame. All
/// selectors in this array must be [compound
/// selectors](http://www.w3.org/TR/selectors4/#compound) to speed up
/// matching. Note: Listing hundreds of CSS selectors or listing CSS
/// selectors that match hundreds of times per page can slow down web sites.
List<String>? css,
/// Matches if the bookmarked state of the page is equal to the specified
/// value. Requres the [bookmarks
/// permission](/docs/extensions/develop/concepts/declare-permissions).
bool? isBookmarked,
required PageStateMatcherInstanceType instanceType,
}) : _wrapped = $js.PageStateMatcher(
pageUrl: pageUrl?.toJS,
css: css?.toJSArray((e) => e),
isBookmarked: isBookmarked,
instanceType: instanceType.toJS,
);