SocialMeta class

Represents the social meta information used for link previews.

This class contains metadata such as the title, description, and imageUrl that can be used to generate rich previews of links when shared across social media platforms or messaging apps.

Constructors

SocialMeta({String? title, String? description, String? imageUrl})
Creates a SocialMeta object with optional title, description, and imageUrl.
SocialMeta.fromJson(Map<String, dynamic> json)
Creates a SocialMeta object from a JSON map.
factory

Properties

description String?
The description associated with the link.
final
hashCode int
The hash code for this object.
no setterinherited
imageUrl String?
The URL of the preview image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
The title of the link preview.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this SocialMeta object into a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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