PreviewData class abstract

A class that represents data obtained from the web resource (link preview).

See https://github.com/flyerhq/flutter_link_previewer.

Annotations

Constructors

PreviewData({String? description, PreviewDataImage? image, String? link, String? title})
const
factory
PreviewData.fromJson(Map<String, dynamic> json)
Creates preview data from a map (decoded JSON).
factory

Properties

description String?
Link description (usually og:description meta tag).
final
hashCode int
The hash code for this object.
no setterinherited
image PreviewDataImage?
See PreviewDataImage.
final
Remote resource URL.
final
props List<Object?>
Equatable props.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
title String?
Link title (usually og:title meta tag).
final

Methods

copyWith({String? description, PreviewDataImage? image, String? link, String? title}) PreviewData
Creates a copy of the preview data with an updated data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts preview data to the map representation, encodable to JSON.
toString() String
A string representation of this object.
inherited

Operators

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