readDroppedImageAttachment function

Future<PromptAttachment?> readDroppedImageAttachment(
  1. PromptAttachment attachment
)

Implementation

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