GiphyImages class

Contains the different available formats for this GIPHY image.

Compare https://developers.giphy.com/docs/optional-settings/#rendition-guide for when to use which version.

Compare https://developers.giphy.com/docs/api/schema#image-object for a description.

Compare the recommendedXXX getter for following the rendition-guide for some popular use cases.

Constructors

GiphyImages({required GiphyStillImage fixedHeightStill, required GiphyStillImage originalStill, required GiphyFullImage fixedWidth, GiphyStillImage? fixedHeightSmallStill, GiphyDownSampledImage? fixedHeightDownSampled, GiphyPreviewImage? preview, GiphyFullImage? fixedHeightSmall, GiphyStillImage? downsizedStill, GiphyDownSizedImage? downsized, GiphyDownSizedImage? downsizedLarge, GiphyStillImage? fixedWidthSmallStill, GiphyWebPImage? previewWebp, GiphyStillImage? fixedWidthStill, GiphyFullImage? fixedWidthSmall, GiphyPreviewImage? downsizedSmall, GiphyDownSampledImage? fixedWidthDownSampled, GiphyPreviewImage? downsizedMedium, GiphyOriginalImage? original, GiphyFullImage? fixedHeight, GiphyPreviewImage? hd, GiphyLoopingImage? looping, GiphyPreviewImage? originalMp4, GiphyDownSizedImage? previewGif, GiphyStillImage? w480Still})
Creates a new images object
GiphyImages.fromJson(Map<String, dynamic> json)
Creates a new images object from json
factory

Properties

downsized GiphyDownSizedImage?
Data on a version of this GIF downsized to be under 2mb.
final
downsizedLarge GiphyDownSizedImage?
Data on a version of this GIF downsized to be under 8mb.
final
downsizedMedium GiphyPreviewImage?
Data on a version of this GIF downsized to be under 5mb.
final
downsizedSmall GiphyPreviewImage?
Data on a version of this GIF downsized to be under 200kb.
final
downsizedStill GiphyStillImage?
Data on a static preview image of the downsized version of this GIF.
final
fixedHeight GiphyFullImage?
Data on versions of this GIF with a fixed height of 200 pixels. Good for mobile use.
final
fixedHeightDownSampled GiphyDownSampledImage?
Data on versions of this GIF with a fixed height of 200 pixels and the number of frames reduced to 6.
final
fixedHeightSmall GiphyFullImage?
Data on versions of this GIF with a fixed height of 100 pixels. Good for mobile keyboards.
final
fixedHeightSmallStill GiphyStillImage?
Data on a static image of this GIF with a fixed height of 100 pixels.
final
fixedHeightStill GiphyStillImage
Data on a static image of this GIF with a fixed height of 200 pixels.
final
fixedWidth GiphyFullImage
Data on versions of this GIF with a fixed width of 200 pixels. Good for mobile use.
final
fixedWidthDownSampled GiphyDownSampledImage?
Data on versions of this GIF with a fixed width of 200 pixels and the number of frames reduced to 6.
final
fixedWidthSmall GiphyFullImage?
Data on versions of this GIF with a fixed width of 100 pixels. Good for mobile keyboards.
final
fixedWidthSmallStill GiphyStillImage?
Data on a static image of this GIF with a fixed width of 100 pixels.
final
fixedWidthStill GiphyStillImage?
Data on a static image of this GIF with a fixed width of 200 pixels.
final
hashCode int
The hash code for this object.
no setteroverride
hd GiphyPreviewImage?
The high definition version, not officially supported
final
looping GiphyLoopingImage?
Data on the 15 second version of the GIF looping.
final
original GiphyOriginalImage?
Data on the original version of this GIF. Good for desktop use.
final
originalMp4 GiphyPreviewImage?
The original MP4 version, not officially supported
final
originalStill GiphyStillImage
Data on a static preview image of the original GIF.
final
preview GiphyPreviewImage?
Data on a version of this GIF in .MP4 format limited to 50kb that displays the first 1-2 seconds of the GIF.
final
previewGif GiphyDownSizedImage?
Data on a version of this GIF limited to 50kb that displays the first 1-2 seconds of the GIF.
final
previewWebp GiphyWebPImage?
Data on a version of this GIF in .WEBP format limited to 50kb that displays the first 1-2 seconds of the GIF.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
w480Still GiphyStillImage?
Data on a static image with a fixed width of 480 pixels, not officially supported
final

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
override