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. Animation? animation,
  15. Audio? audio,
  16. Document? document,
  17. Sticker? sticker,
  18. Video? video,
  19. VideoNote? videoNote,
  20. VoiceNote? voiceNote,
  21. required int storySenderChatId,
  22. required int storyId,
  23. required int instantViewVersion,
  24. dynamic extra,
  25. int? clientId,
})

Describes a web page 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,
  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,
});