Attachment class

Represents a file attachment.

This class is used to represent a file that's attached to a chat message. It includes information about the file such as its URL, name, extension, mime type, and size.

Constructors

Attachment(String fileUrl, String fileName, String fileExtension, String fileMimeType, int? fileSize)
Constructs a new Attachment instance.
Attachment.fromMap(dynamic map)
Creates a new Attachment instance from a map.
factory

Properties

fileExtension String
The extension of the file.
getter/setter pair
fileMimeType String
The MIME type of the file.
getter/setter pair
fileName String
The name of the file.
getter/setter pair
fileSize int?
The size of the file in bytes.
getter/setter pair
fileUrl String
The URL of the file.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

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