LinkAttachment class final

Represents a link attachment in a chat message.

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

Inheritance
Annotations

Constructors

LinkAttachment({required String name, required Uri url})
Creates a LinkAttachment with the given name and URL.

Properties

hashCode int
The hash code for this object.
no setterinherited
mimeType String
The MIME type of the linked content.
final
name String
The name of the attachment.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
The URL of the link attachment.
final

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