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. |Returns|: Promise that resolves with the details of matched rules.
Implementation
Future<TestMatchOutcomeResult> testMatchOutcome(
TestMatchRequestDetails request) async {
var $res = await $js.chrome.declarativeNetRequest
.testMatchOutcome(request.toJS)
.toDart;
return TestMatchOutcomeResult.fromJS($res);
}