getPlainText method
getPlainText method is used to get the plain text from the editor
Implementation
Future<String> getPlainText() async {
try {
String? text = await _editorKey?.currentState?._getPlainTextFromEditor();
if (text == null) {
return "";
} else {
return text;
}
} catch (e) {
return "";
}
}