paste method

Future<String?> paste()

Paste the most recent entry from the system clipboard.

Returns null if the clipboard is empty.

Implementation

Future<String?> paste() async {
  final data = await Clipboard.getData(Clipboard.kTextPlain);
  return data?.text;
}