copy method

void copy(
  1. String text
)

Copies the provided text to the clipboard.

text is the string to copy to the clipboard.

Implementation

void copy(String text) {
  Clipboard.setData(ClipboardData(text: text));
}