RequestFilter class
An object describing filters to apply to webRequest events.
class RequestFilter extends ChromeObject { RequestFilter({List<String> urls, List<String> types, int tabId, int windowId}) { if (urls != null) this.urls = urls; if (types != null) this.types = types; if (tabId != null) this.tabId = tabId; if (windowId != null) this.windowId = windowId; } RequestFilter.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); /** * A list of URLs or URL patterns. Requests that cannot match any of the URLs * will be filtered out. */ List<String> get urls => listify(jsProxy['urls']); set urls(List<String> value) => jsProxy['urls'] = jsify(value); /** * A list of request types. Requests that cannot match any of the types will * be filtered out. */ List<String> get types => listify(jsProxy['types']); set types(List<String> value) => jsProxy['types'] = jsify(value); int get tabId => jsProxy['tabId']; set tabId(int value) => jsProxy['tabId'] = value; int get windowId => jsProxy['windowId']; set windowId(int value) => jsProxy['windowId'] = value; }
Extends
ChromeObject > RequestFilter
Constructors
new RequestFilter({List<String> urls, List<String> types, int tabId, int windowId}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
RequestFilter({List<String> urls, List<String> types, int tabId, int windowId}) { if (urls != null) this.urls = urls; if (types != null) this.types = types; if (tabId != null) this.tabId = tabId; if (windowId != null) this.windowId = windowId; }
new RequestFilter.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
RequestFilter.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
int tabId #
int get tabId => jsProxy['tabId'];
set tabId(int value) => jsProxy['tabId'] = value;
List<String> types #
A list of request types. Requests that cannot match any of the types will be filtered out.
List<String> get types => listify(jsProxy['types']);
set types(List<String> value) => jsProxy['types'] = jsify(value);
List<String> urls #
A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out.
List<String> get urls => listify(jsProxy['urls']);
set urls(List<String> value) => jsProxy['urls'] = jsify(value);
int windowId #
int get windowId => jsProxy['windowId'];
set windowId(int value) => jsProxy['windowId'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();