getClipboard function

Future<String?> getClipboard()

获取剪贴板内容

Implementation

Future<String?> getClipboard() =>
    Clipboard.getData(Clipboard.kTextPlain).then((data) => data?.text);