copy static method

void copy(
  1. String? text
)

Implementation

static void copy(String? text) {
  Clipboard.setData(ClipboardData(text: text!));
  ToastUtils.toast(msg: "已复制");
}