getMarkdownText method

  1. @override
Future<String?> getMarkdownText()

Get Clipboard content as Markdown Text, this is platform specific and not the same as getPlainText for two reasons:

  1. The user might want to paste Markdown text
  2. Copying Markdown text from other apps and use getPlainText will ignore the Markdown content and provide it as text

Implementation

@override
Future<String?> getMarkdownText() async {
  // Formats.markdownText or Formats.mdText does not exist yet in super_clipboard
  throw UnsupportedError(
    'SuperClipboardService does not support retrieving image files.',
  );
}