setClipboardData static method

Future<void> setClipboardData(
  1. String text
)

将文本内容复制到剪贴板

Implementation

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