RequestFilter constructor

RequestFilter({
  1. required List<String> urls,
  2. List<ResourceType>? types,
  3. int? tabId,
  4. int? windowId,
})

Implementation

RequestFilter({
  /// A list of URLs or URL patterns. Requests that cannot match any of the
  /// URLs will be filtered out.
  required List<String> urls,

  /// A list of request types. Requests that cannot match any of the types
  /// will be filtered out.
  List<ResourceType>? types,
  int? tabId,
  int? windowId,
}) : _wrapped = $js.RequestFilter(
        urls: urls.toJSArray((e) => e),
        types: types?.toJSArray((e) => e.toJS),
        tabId: tabId,
        windowId: windowId,
      );