Photos class

Provides access to resources related to Photo.

See: Unsplash docs

Constructors

Photos(UnsplashClient client)
Creates a new instance which belongs to client.

Properties

baseUrl Uri
The base url for all endpoints for Photos.
final
client UnsplashClient
The parent UnsplashClient.
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

download(String id, {Uri? location}) Request<TrackPhotoDownload>
Track a photo download
get(String id) Request<Photo>
Get a photo
list({int? page, int? perPage, PhotoOrder? orderBy}) Request<List<Photo>>
List photos
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
random({String? query, String? username, bool? featured, Iterable<String>? collections, PhotoOrientation? orientation, int count = 1, ContentFilter? contentFilter}) Request<List<Photo>>
Get a random photo
statistics(String id, {StatisticsResolution? resolution, int? quantity}) Request<PhotoStatistics>
Get a photo’s statistics
toString() String
A string representation of this object.
inherited

Operators

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