isRegexSupported method

Future<IsRegexSupportedResult> isRegexSupported(
  1. RegexOptions regexOptions
)

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 $js.chrome.declarativeNetRequest
      .isRegexSupported(regexOptions.toJS)
      .toDart;
  return IsRegexSupportedResult.fromJS($res);
}