cutSelectedText method
Returns selected text and removes every selection atomically.
Implementation
String cutSelectedText() {
final text = getSelectedText();
if (text.isEmpty) return '';
deleteSelections();
return text;
}
Returns selected text and removes every selection atomically.
String cutSelectedText() {
final text = getSelectedText();
if (text.isEmpty) return '';
deleteSelections();
return text;
}