handlePaste method

Future<void> handlePaste()

Reads the SystemClipboard and pastes any content contained in it.

Implementation

Future<void> handlePaste() async {
  final clipboard = SystemClipboard.instance;
  if (clipboard == null) {
    return;
  }

  _pasteItem(await clipboard.read());
}