LinkPreviewMetadata class
Open Graph / oEmbed-like metadata extracted from a URL. The chat composer fetches it on the fly while the user types and embeds it in the outgoing message so the receiver renders the same preview without re-fetching.
- Annotations
Constructors
- LinkPreviewMetadata({required String url, String? title, String? description, String? imageUrl})
-
const
Properties
- description → String?
-
final
- hasContent → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageUrl → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
final
- url → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMessageMetadata(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited