cutSelectedText method

String cutSelectedText()

Returns selected text and removes every selection atomically.

Implementation

String cutSelectedText() {
  final text = getSelectedText();
  if (text.isEmpty) return '';
  deleteSelections();
  return text;
}