copy method

Future<void> copy({
  1. required String text,
})

Stores the provided text on the Clipboard.

Implementation

Future<void> copy({required String text}) async {
  await Clipboard.setData(ClipboardData(text: text));
}