GiphyMedia class
A class representing media content on Giphy.
Constructors
-
GiphyMedia.new({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.
const
-
GiphyMedia.fromJson(Map<
Object?, Object?> json) -
Creates a GiphyMedia instance from a JSON object.
factory
Properties
- altText → String?
-
Enables assistive programs to read descriptions of GIFs.
final
- analyticsResponsePayload → String?
-
The analytics response payload.
final
- animatedTextStyle → String?
-
The style of dynamic text.
final
- aspectRatio → double
-
The aspect ratio of the media.
final
- bitlyGifUrl → String?
-
The shortened Bitly URL for the GIF.
final
- bitlyUrl → String?
-
The shortened Bitly URL for the media.
final
- contentUrl → String?
-
The content URL of the media.
final
- createDate → DateTime?
-
The date the media was created.
final
- embedUrl → String?
-
The URL to embed the media.
final
-
featuredTags
→ List<
String> ? -
A list of featured tags associated with the media.
final
- hasAttributions → bool
-
Whether the media has attributions.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique identifier for the media.
final
- images → GiphyImages
-
The images associated with the media.
final
- importDate → DateTime?
-
The date the media was imported.
final
- isAnonymous → bool
-
Whether the media was uploaded anonymously.
final
- isCommunity → bool
-
Whether the media is community content.
final
- isDynamic → bool
-
True if this is dynamically generated like texts, false otherwise
final
- isFeatured → bool
-
Whether the media is featured.
final
- isHidden → bool
-
Whether the media is hidden.
final
- isIndexable → bool
-
Whether the media is indexable.
final
- isRealtime → bool
-
Whether the media is in real-time.
final
- isRemoved → bool
-
Whether the media is removed.
final
- isSticker → bool
-
Whether the media is a sticker.
final
- isVideo → bool
-
Whether the media is a video.
final
- rating → GiphyRating?
-
The rating of the media.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slug → String?
-
The slug (a URL-friendly identifier) for the media.
final
- source → String?
-
The source URL of the media.
final
- sourcePostUrl → String?
-
Attribution Source Post URL.
final
- sourceTld → String?
-
Attribution Source Domain TLD.
final
-
A list of tags associated with the media.
final
- title → String?
-
The title of the media.
final
- trendingDate → DateTime?
-
The date the media started trending.
final
- type → GiphyMediaType?
-
The type of media (e.g., gif, sticker).
final
- updateDate → DateTime?
-
The date the media was last updated.
final
- url → String?
-
The URL for the media.
final
- user → GiphyUser?
-
The user who uploaded the media.
final
-
userDictionary
→ Map<
String, String> ? -
A dictionary of user attributes.
final
- variation → String?
-
String representation of emoji variation
final
- variationCount → int?
-
Emoji variation count
final
- video → GiphyVideo?
-
The video associated with the media.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the GiphyMedia instance to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited