LinkPreviewData class abstract
Represents the data extracted for a link preview.
- Annotations
-
- @freezed
Constructors
- LinkPreviewData.new({required String link, String? description, ImagePreviewData? image, String? title})
-
Creates a LinkPreviewData instance.
constfactory
-
LinkPreviewData.fromJson(Map<
String, dynamic> json) -
Creates a LinkPreviewData instance from a JSON map.
factory
Properties
-
copyWith
→ $LinkPreviewDataCopyWith<
LinkPreviewData> -
Create a copy of LinkPreviewData
with the given fields replaced by the non-null parameter values.
no setterinherited
- description → String?
-
A description extracted from the link source.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → ImagePreviewData?
-
The preview data of an image extracted from the link
no setterinherited
- link → String
-
The original URL link.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
The title extracted from the link source.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this LinkPreviewData to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited