PexelsClient class

Constructors

PexelsClient(String apiKey)

Properties

apiKey String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPhoto({int? id}) Future<Photo?>
id the id of the photo to return. if id is not specified, a random photo will be returned.
getQuota() Future<Quota>
getVideo({int? id}) Future<Video?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchPhotos(String query, {Collection collection = Collection.Regular, int resultsPerPage = 15, int page = 1}) Future<SearchResult<Photo?>?>
searchVideos(String query, {Collection collection = Collection.Regular, int resultsPerPage = 15, int page = 1, int? minWidth, int? maxWidth, int? minDuration, int? maxDuration}) Future<SearchResult<Video?>?>
toString() String
A string representation of this object.
inherited

Operators

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