insertText method

Future<void> insertText(
  1. String text
)

Insert text at the end of the current HTML content in the editor Note: This method should only be used for plaintext strings

Implementation

Future<void> insertText(String text) async {
  await evaluateJavascript(
      data: {'type': 'toIframe: insertText', 'text': text});
}