copy static method

Future<void> copy(
  1. String text
)

Copies the provided text to the clipboard.

Implementation

static Future<void> copy(String text) {
  return Clipboard.setData(ClipboardData(text: text));
}