PexelsClient class

Constructors

PexelsClient.new(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<PexelsPhoto?>
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<PexelsVideo?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchPhotos(String query, {PexelsCollection collection = PexelsCollection.Regular, int resultsPerPage = 15, int page = 1, PexelsPhotoOrientation? orientation}) Future<SearchResult<PexelsPhoto?>?>
searchVideos(String query, {PexelsCollection collection = PexelsCollection.Regular, int resultsPerPage = 15, int page = 1, int? minWidth, int? maxWidth, int? minDuration, int? maxDuration}) Future<SearchResult<PexelsVideo?>?>
toString() String
A string representation of this object.
inherited

Operators

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