execCommand method

Future<void> execCommand(
  1. String command, {
  2. String? argument,
})

A function to quickly call a document.execCommand function in a readable format

Implementation

Future<void> execCommand(String command, {String? argument}) async {
  await evaluateJavascript(data: {
    'type': 'toIframe: execCommand',
    'command': command,
    'argument': argument
  });
}