execCommand method
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")');
}
}
}