LinkPreview class

Represents information of link preview.

Annotations
  • @freezed

Constructors

LinkPreview({required String url, required String title, required String description, required String image})
const
factory
LinkPreview.fromJson(Map<String, Object?> json)
Creates an instance of LinkPreview from a map json.
factory

Properties

copyWith → $LinkPreviewCopyWith<LinkPreview>
no setterinherited
description String
The preview description of the link.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
image String
The preview image of the link.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The preview title of the link.
no setterinherited
url String
The preview url if the link.
no setterinherited

Methods

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

Operators

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