WebPage constructor

const WebPage({
  1. required String url,
  2. required String displayUrl,
  3. required String type,
  4. required String siteName,
  5. required String title,
  6. required FormattedText description,
  7. Photo? photo,
  8. required String embedUrl,
  9. required String embedType,
  10. required int embedWidth,
  11. required int embedHeight,
  12. required int duration,
  13. required String author,
  14. required bool hasLargeMedia,
  15. required bool showLargeMedia,
  16. required bool skipConfirmation,
  17. required bool showAboveText,
  18. Animation? animation,
  19. Audio? audio,
  20. Document? document,
  21. Sticker? sticker,
  22. Video? video,
  23. VideoNote? videoNote,
  24. VoiceNote? voiceNote,
  25. required int storySenderChatId,
  26. required int storyId,
  27. required int instantViewVersion,
  28. dynamic extra,
  29. int? clientId,
})

Describes a link preview

Implementation

const WebPage({
  required this.url,
  required this.displayUrl,
  required this.type,
  required this.siteName,
  required this.title,
  required this.description,
  this.photo,
  required this.embedUrl,
  required this.embedType,
  required this.embedWidth,
  required this.embedHeight,
  required this.duration,
  required this.author,
  required this.hasLargeMedia,
  required this.showLargeMedia,
  required this.skipConfirmation,
  required this.showAboveText,
  this.animation,
  this.audio,
  this.document,
  this.sticker,
  this.video,
  this.videoNote,
  this.voiceNote,
  required this.storySenderChatId,
  required this.storyId,
  required this.instantViewVersion,
  this.extra,
  this.clientId,
});