copyText static method

dynamic copyText(
  1. String text
)

Implementation

static copyText(String text) {
  Clipboard.setData(ClipboardData(text: text));
  print("Copied text: $text");
}