PreviewCard class
Constructors
-
PreviewCard({required String url, required String title, required String description, required PreviewCardType type, required String authorName, required String authorUrl, required String providerName, required String providerUrl, required String html, required int width, required int height, @JsonKey(name: 'image') String? imageUrl, required String embedUrl, @JsonKey(name: 'blurhash') String? blurHash})
-
const
factory
-
PreviewCard.fromJson(Map<String, Object?> json)
-
factory
Properties
-
authorName
→ String
-
The author of the original resource.
no setterinherited
-
authorUrl
→ String
-
A link to the author of the original resource.
no setterinherited
-
blurHash
→ String?
-
A hash computed by the BlurHash algorithm, for generating colorful
preview thumbnails when media has not been downloaded yet.
no setterinherited
-
copyWith
→ $PreviewCardCopyWith<PreviewCard>
-
no setterinherited
-
description
→ String
-
Description of preview.
no setterinherited
-
embedUrl
→ String
-
Used for photo embeds, instead of custom html.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
→ int
-
Height of preview, in pixels.
no setterinherited
-
html
→ String
-
HTML to be used for generating the preview card.
no setterinherited
-
imageUrl
→ String?
-
Preview thumbnail.
no setterinherited
-
providerName
→ String
-
The provider of the original resource.
no setterinherited
-
providerUrl
→ String
-
A link to the provider of the original resource.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
title
→ String
-
Title of linked resource.
no setterinherited
-
type
→ PreviewCardType
-
The type of the preview card.
no setterinherited
-
url
→ String
-
Location of linked resource.
no setterinherited
-
width
→ int
-
Width of preview, in pixels.
no setterinherited