GiphyRequest class
Encapsulates a request to ease subsequent requests
Constructors
- GiphyRequest(GiphyType type, String language, GiphyRating rating, {String? searchQuery})
-
Creates a new request
const
- GiphyRequest.emojis({String language = GiphyLanguage.english, GiphyRating rating = GiphyRating.g})
-
Convenience method to create an emoji request
factory
- GiphyRequest.search({required String query, GiphyType type = GiphyType.gifs, String language = GiphyLanguage.english, GiphyRating rating = GiphyRating.g})
-
Convenience method to create a search request
factory
- GiphyRequest.trending({GiphyType type = GiphyType.gifs, String language = GiphyLanguage.english, GiphyRating rating = GiphyRating.g})
-
Convenience method to create a trending request
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String
-
The language code
final
- rating → GiphyRating
-
The rating
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchQuery → String?
-
The search query
final
- type → GiphyType
-
The type of the request
final
Methods
-
copyWith(
{GiphyType? type, String? language, GiphyRating? rating, String? searchQuery}) → GiphyRequest - Copies this request with only the specified setting changed.
-
copyWithoutSearchQuery(
{GiphyType? type, String? language, GiphyRating? rating}) → GiphyRequest - Copies this request with only the specified settings changed but without search query.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited