cut method

Future<void> cut()

Implementation

Future<void> cut() async {
  if (hasSelection) {
    await Clipboard.setData(selection!.textInRange(_text));
    deleteSelection();
  }
}