GiphyMedia constructor

const GiphyMedia({
  1. required String id,
  2. GiphyMediaType? type,
  3. String? slug,
  4. String? url,
  5. String? bitlyGifUrl,
  6. String? bitlyUrl,
  7. String? embedUrl,
  8. String? source,
  9. String? title,
  10. GiphyRating? rating,
  11. String? contentUrl,
  12. List<String>? tags,
  13. List<String>? featuredTags,
  14. GiphyUser? user,
  15. required GiphyImages images,
  16. GiphyVideo? video,
  17. String? analyticsResponsePayload,
  18. String? sourceTld,
  19. String? sourcePostUrl,
  20. DateTime? updateDate,
  21. DateTime? createDate,
  22. DateTime? importDate,
  23. DateTime? trendingDate,
  24. bool isHidden = false,
  25. bool isRemoved = false,
  26. bool isCommunity = false,
  27. bool isAnonymous = false,
  28. bool isFeatured = false,
  29. bool isRealtime = false,
  30. bool isIndexable = false,
  31. bool isSticker = false,
  32. bool isDynamic = false,
  33. bool isVideo = false,
  34. String? animatedTextStyle,
  35. bool hasAttributions = false,
  36. String? altText,
  37. String? variation,
  38. int? variationCount,
  39. double aspectRatio = 1.0,
  40. Map<String, String>? userDictionary,
})

Creates a GiphyMedia instance with the given attributes.

Implementation

const GiphyMedia({
  required this.id,
  this.type,
  this.slug,
  this.url,
  this.bitlyGifUrl,
  this.bitlyUrl,
  this.embedUrl,
  this.source,
  this.title,
  this.rating,
  this.contentUrl,
  this.tags,
  this.featuredTags,
  this.user,
  required this.images,
  this.video,
  this.analyticsResponsePayload,
  this.sourceTld,
  this.sourcePostUrl,
  this.updateDate,
  this.createDate,
  this.importDate,
  this.trendingDate,
  this.isHidden = false,
  this.isRemoved = false,
  this.isCommunity = false,
  this.isAnonymous = false,
  this.isFeatured = false,
  this.isRealtime = false,
  this.isIndexable = false,
  this.isSticker = false,
  this.isDynamic = false,
  this.isVideo = false,
  this.animatedTextStyle,
  this.hasAttributions = false,
  this.altText,
  this.variation,
  this.variationCount,
  this.aspectRatio = 1.0,
  this.userDictionary,
});