hasClipboardContent property

Future<bool> get hasClipboardContent

If the Clipboard is not empty or has something to paste

Implementation

Future<bool> get hasClipboardContent async {
  final clipboardData = await Clipboard.getData(Clipboard.kTextPlain);
  return clipboardData != null;
}