ImageFileAttachment class final

Represents an image attachment in a chat message.

This class extends Attachment and provides specific properties and methods for handling image attachments.

Inheritance
Annotations

Constructors

ImageFileAttachment({required String name, required String mimeType, required Uint8List bytes})
Creates an ImageFileAttachment with the given name, MIME type, and bytes.

Properties

bytes Uint8List
The binary content of the file attachment.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
mimeType String
The MIME type of the file attachment.
finalinherited
name String
The name of the attachment.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromFile(XFile file) Future<ImageFileAttachment>
Creates an ImageFileAttachment from an XFile.
override