LinkPreview class
A preview of a link someone posted, built by the server and attached to the message. The server fetches the page; a client never does. There is no capability to negotiate, and the server refuses these tags from any sender but itself, so a peer cannot forge one.
Constructors
- LinkPreview({required String title, required String? snippet, required String? image})
-
const
-
LinkPreview.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → String?
-
An image, already re-hosted by the server when it has a filehost configured.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snippet → String?
-
A description of the page, when the page offered one.
final
- title → String
-
The page title. Always present when a preview exists at all.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited