getClipboardData static method

dynamic getClipboardData()

获取剪切板内容

Implementation

static getClipboardData() async {
  var clipboardData = await Clipboard.getData(Clipboard.kTextPlain);
  if (clipboardData != null) {
    return clipboardData;
  }
}