LinkPreviewOptions constructor
const
LinkPreviewOptions({})
Constructs an instance of LinkPreviewOptions.
Implementation
const factory LinkPreviewOptions({
/// Optional. True, if the link preview is disabled
@JsonKey(name: 'is_disabled') bool? isDisabled,
/// Optional. URL to use for the link preview. If empty, then the first URL
/// found in the message text will be used
@JsonKey(name: 'url') String? url,
/// Optional. True, if the media in the link preview is supposed to be
/// shrunk; ignored if the URL isn't explicitly specified or media size
/// change isn't supported for the preview
@JsonKey(name: 'prefer_small_media') bool? preferSmallMedia,
/// Optional. True, if the media in the link preview is supposed to be
/// enlarged; ignored if the URL isn't explicitly specified or media size
/// change isn't supported for the preview
@JsonKey(name: 'prefer_large_media') bool? preferLargeMedia,
/// Optional. True, if the link preview must be shown above the message
/// text; otherwise, the link preview will be shown below the message text
@JsonKey(name: 'show_above_text') bool? showAboveText,
}) = _LinkPreviewOptions;