readDroppedImageAttachment function
Implementation
Future<PromptAttachment?> readDroppedImageAttachment(
PromptAttachment attachment,
) async {
if (attachment.isInline) return attachment;
throw UnsupportedError('Provide readImage for this platform.');
}