copy method
Copies the selected text to the clipboard.
Implementation
Future<void> copy() async {
if (hasSelection) {
await Clipboard.setData(selection!.textInRange(_text));
}
}
Copies the selected text to the clipboard.
Future<void> copy() async {
if (hasSelection) {
await Clipboard.setData(selection!.textInRange(_text));
}
}