execCommand method

Future<void> execCommand(
  1. String command, [
  2. String? value
])

Execute a formatting command

Implementation

Future<void> execCommand(String command, [String? value]) async {
  if (_webViewController != null) {
    if (value != null) {
      await _webViewController!.runJavaScript(
        'execCommand("$command", "$value")',
      );
    } else {
      await _webViewController!.runJavaScript('execCommand("$command")');
    }
  }
}