testMatchOutcome method

Checks if any of the extension's declarativeNetRequest rules would match a hypothetical request. Note: Only available for unpacked extensions as this is only intended to be used during extension development. |requestDetails|: The request details to test. |callback|: Called with the details of matched rules.

Implementation

Future<TestMatchOutcomeResult> testMatchOutcome(
    TestMatchRequestDetails request) async {
  var $res = await promiseToFuture<$js.TestMatchOutcomeResult>(
      $js.chrome.declarativeNetRequest.testMatchOutcome(request.toJS));
  return TestMatchOutcomeResult.fromJS($res);
}