removeRules method

Future<void> removeRules(
  1. String eventName,
  2. int webViewInstanceId,
  3. List<String>? ruleIdentifiers
)

Unregisters currently registered rules. eventName Name of the event this function affects. webViewInstanceId If provided, this is an integer that uniquely identfies the

Implementation

Future<void> removeRules(
  String eventName,
  int webViewInstanceId,
  List<String>? ruleIdentifiers,
) {
  var $completer = Completer<void>();
  _wrapped.removeRules(
    eventName,
    webViewInstanceId,
    ruleIdentifiers?.toJSArray((e) => e),
    () {
      if (checkRuntimeLastError($completer)) {
        $completer.complete(null);
      }
    }.toJS,
  );
  return $completer.future;
}