linkPreviewCustomPasteCommand top-level property

CommandShortcutEvent linkPreviewCustomPasteCommand
final

Try to convert pasted content into link preview, if it fails then we fallback to the standard pasteCommand.

Implementation

final CommandShortcutEvent linkPreviewCustomPasteCommand = CommandShortcutEvent(
  key: 'paste content w/ link preview converter',
  getDescription: () => 'Paste content with link preview converter',
  command: 'ctrl+v',
  macOSCommand: 'cmd+v',
  handler: _pasteCommandHandler,
);