cut method

void cut()

Cuts the selection and copies it to the clipboard

Implementation

void cut( ) {
  final text = getStringSelection();
  if (text.isEmpty) return;
  Clipboard.setData(ClipboardData(text: text ));
  final from = _textEditingController.selection.start;
  final to = _textEditingController.selection.end;
  _textEditingController.text.replaceRange(from, to, "" );
}