import 'package:flutter/foundation.dart'; import 'chat_clipboard_paste.dart'; import 'chat_clipboard_paste_native.dart'; /// Native clipboard-file paste. /// /// macOS reads the pasteboard through its Runner /// ([nativeChatClipboardPaste]). Other native hosts have no pasteboard reader /// yet: they report that missing capability rather than pretending no paste /// happened, and the composer keeps the host field's own text paste. const String chatClipboardPasteUnsupportedMessage = 'Pasting files is not supported on this platform yet.'; ChatClipboardPaste get hostChatClipboardPaste => chatHostReadsClipboardFiles(defaultTargetPlatform) ? nativeChatClipboardPaste() : const ChatClipboardPaste.unsupported( chatClipboardPasteUnsupportedMessage, );