GiphyImages class

A class representing various renditions of Giphy images.

Constructors

GiphyImages({GiphyImage? fixedHeight, GiphyImage? fixedHeightStill, GiphyImage? fixedHeightDownsampled, GiphyImage? fixedWidth, GiphyImage? fixedWidthStill, GiphyImage? fixedWidthDownsampled, GiphyImage? fixedHeightSmall, GiphyImage? fixedHeightSmallStill, GiphyImage? fixedWidthSmall, GiphyImage? fixedWidthSmallStill, GiphyImage? downsized, GiphyImage? downsizedStill, GiphyImage? downsizedLarge, GiphyImage? downsizedMedium, GiphyImage? original, GiphyImage? originalStill, GiphyImage? looping, GiphyImage? preview, GiphyImage? downsizedSmall, String? mediaId})
Creates a GiphyImages instance with the given renditions.
const
GiphyImages.fromJson(Map<Object?, Object?> json)
Creates a GiphyImages instance from a JSON object.
factory

Properties

downsized → GiphyImage?
File size under 2mb.
final
downsizedLarge → GiphyImage?
File size under 8mb.
final
downsizedMedium → GiphyImage?
File size under 5mb.
final
downsizedSmall → GiphyImage?
File size under 200kb.
final
downsizedStill → GiphyImage?
Static preview image for downsized.
final
fixedHeight → GiphyImage?
Height set to 200px. Good for mobile use.
final
fixedHeightDownsampled → GiphyImage?
Height set to 200px. Reduced to 6 frames to minimize file size to the lowest. Works well for unlimited scroll on mobile and as animated previews. See Giphy.com on mobile web as an example.
final
fixedHeightSmall → GiphyImage?
Height set to 100px. Good for mobile keyboards.
final
fixedHeightSmallStill → GiphyImage?
Static preview image for fixed_height_small.
final
fixedHeightStill → GiphyImage?
Static preview image for fixed_height.
final
fixedWidth → GiphyImage?
Width set to 200px. Good for mobile use.
final
fixedWidthDownsampled → GiphyImage?
Width set to 200px. Reduced to 6 frames. Works well for unlimited scroll on mobile and as animated previews.
final
fixedWidthSmall → GiphyImage?
Width set to 100px. Good for mobile keyboards.
final
fixedWidthSmallStill → GiphyImage?
Static preview image for fixed_width_small.
final
fixedWidthStill → GiphyImage?
Static preview image for fixed_width.
final
hashCode → int
The hash code for this object.
no setterinherited
looping → GiphyImage?
Duration set to loop for 15 seconds. Only recommended for this exact use case.
final
mediaId → String?
The media ID associated with the image.
final
original → GiphyImage?
Original file size and file dimensions. Good for desktop use.
final
originalStill → GiphyImage?
Static preview image for original.
final
preview → GiphyImage?
File size under 50kb. Duration may be truncated to meet file size requirements. Good for thumbnails and previews.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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