GiphyContentRequest class
A class representing a request for Giphy content.
Constructors
- GiphyContentRequest.new({required GiphyMediaType mediaType, GiphyRating? rating, required GiphyContentRequestType requestType, String? searchQuery})
-
Creates a GiphyContentRequest instance with the given parameters.
const
- GiphyContentRequest.animate(String input)
-
Creates a GiphyContentRequest for dynamic texts.
factory
- GiphyContentRequest.emoji()
-
Creates a GiphyContentRequest for emoji content.
factory
-
GiphyContentRequest.fromJson(Map<
Object?, Object?> json) -
Creates a GiphyContentRequest instance from a JSON object.
factory
- GiphyContentRequest.recents()
-
Creates a GiphyContentRequest for recent content.
factory
- GiphyContentRequest.search({required GiphyMediaType mediaType, GiphyRating rating = GiphyRating.pg13, required String searchQuery})
-
Creates a GiphyContentRequest for searching content.
factory
- GiphyContentRequest.trending({required GiphyMediaType mediaType, GiphyRating rating = GiphyRating.pg13})
-
Creates a GiphyContentRequest for trending content.
factory
- GiphyContentRequest.trendingGifs({GiphyRating rating = GiphyRating.pg13})
-
Creates a GiphyContentRequest for trending GIFs.
factory
- GiphyContentRequest.trendingStickers({GiphyRating rating = GiphyRating.pg13})
-
Creates a GiphyContentRequest for trending stickers.
factory
- GiphyContentRequest.trendingText({GiphyRating rating = GiphyRating.pg13})
-
Creates a GiphyContentRequest for trending text.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mediaType → GiphyMediaType
-
The media type for the Giphy content.
final
- rating → GiphyRating?
-
The rating for the Giphy content.
final
- requestType → GiphyContentRequestType
-
The type of request being made.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchQuery → String?
-
The search query for the request, if applicable.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the GiphyContentRequest instance to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited