GiphyImage class

A class representing a Giphy image with various attributes and formats.

Constructors

GiphyImage({String? gifUrl, int width = 0, int height = 0, int gifSize = 0, int frames = 0, String? mp4Url, int mp4Size = 0, String? webPUrl, int webPSize = 0, String? mediaId, GiphyRendition? renditionType})
Creates a GiphyImage instance with the given attributes.
const
GiphyImage.fromJson(Map<Object?, Object?> json)
Creates a GiphyImage instance from a JSON object.
factory

Properties

frames → int
The number of frames in the GIF.
final
gifSize → int
The size of the GIF in bytes.
final
gifUrl → String?
The URL of the GIF version of the image.
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
The height of the image.
final
mediaId → String?
The media ID of the image.
final
mp4Size → int
The size of the MP4 in bytes.
final
mp4Url → String?
The URL of the MP4 version of the image.
final
renditionType → GiphyRendition?
The rendition type of the image.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
webPSize → int
The size of the WebP in bytes.
final
webPUrl → String?
The URL of the WebP version of the image.
final
width → int
The width of the image.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts the GiphyImage instance to a JSON object.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited