LinkPreviewData constructor

const LinkPreviewData({
  1. required String link,
  2. String? description,
  3. ImagePreviewData? image,
  4. String? title,
})

Creates a LinkPreviewData instance.

Implementation

const factory LinkPreviewData({
  /// The original URL link.
  required String link,

  /// A description extracted from the link source.
  String? description,

  /// The preview data of an image extracted from the link
  ImagePreviewData? image,

  /// The title extracted from the link source.
  String? title,
}) = _LinkPreviewData;