isRegexSupported method
Checks if the given regular expression will be supported as a
regexFilter
rule condition.
|regexOptions|: The regular expression to check.
|callback|: Called with details consisting of whether the regular
expression is supported and the reason if not.
Implementation
Future<IsRegexSupportedResult> isRegexSupported(
RegexOptions regexOptions) async {
var $res = await promiseToFuture<$js.IsRegexSupportedResult>(
$js.chrome.declarativeNetRequest.isRegexSupported(regexOptions.toJS));
return IsRegexSupportedResult.fromJS($res);
}