copy method

Future<void> copy()

Implementation

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