GiphyMedia constructor
const
GiphyMedia({
- required String id,
- GiphyMediaType? type,
- String? slug,
- String? url,
- String? bitlyGifUrl,
- String? bitlyUrl,
- String? embedUrl,
- String? source,
- String? title,
- GiphyRating? rating,
- String? contentUrl,
- List<
String> ? tags, - List<
String> ? featuredTags, - GiphyUser? user,
- required GiphyImages images,
- GiphyVideo? video,
- String? analyticsResponsePayload,
- String? sourceTld,
- String? sourcePostUrl,
- DateTime? updateDate,
- DateTime? createDate,
- DateTime? importDate,
- DateTime? trendingDate,
- bool isHidden = false,
- bool isRemoved = false,
- bool isCommunity = false,
- bool isAnonymous = false,
- bool isFeatured = false,
- bool isRealtime = false,
- bool isIndexable = false,
- bool isSticker = false,
- bool isDynamic = false,
- bool isVideo = false,
- String? animatedTextStyle,
- bool hasAttributions = false,
- String? altText,
- String? variation,
- int? variationCount,
- double aspectRatio = 1.0,
- 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,
});