PromptAttachment.fromBytes constructor
PromptAttachment.fromBytes({})
Implementation
factory PromptAttachment.fromBytes({
required Uint8List bytes,
required String name,
required String mimeType,
}) {
return PromptAttachment(
path: '',
name: name,
mimeType: mimeType,
size: bytes.length,
data: base64Encode(bytes),
);
}