unsplash_client library

Classes

AppCredentials
Credentials for accessing the unsplash api as a registered app. [...]
ClientSettings
The settings for the UnsplashClient.
Collection
A collection of Photos. [...]
Links for a Collection.
Exif
Exif metadata for a Photo.
GeoLocation
A geographical location.
GeoPosition
A precise geographical position on earth, in latitude and longitude.
HistoricalData
Historical data for a statistic for a Photo.
HistoricalValue
Historical data point in HistoricalData.
ModelBase
Base class for all models. [...]
MonthStats
Monthly statistics for all of Unsplash. [...]
Photo
A photo uploaded to unsplash. [...]
Links for a Photo.
Photos
Provides access to resources related to Photo. [...]
PhotoStatistics
Statistics for a Photo.
PhotoUrls
Photo urls for a Photo.
ProfileImage
The profile image of a User.
Request<T>
A request holds all the information necessary to make a request to the api. [...]
Response<T>
The response to a Request. [...]
Search for resources. [...]
SearchResults<T extends ModelBase>
Results returned from a search request.
Statistic
A statistical metric.
Stats
Provides access to the TotalStats and MonthStats resources. [...]
Tag
Tag for a Photo.
TotalStats
Total statistics for all of Unsplash. [...]
TrackPhotoDownload
Response to request to track photo download.
UnsplashClient
A client for accessing the unsplash api. [...]
User
A user registered with unsplash. [...]
UserBadge
A badge of a User.
Links for a User.
Response to request get a Users portfolio link.
Users
Provides access to resources related to User. [...]
UserStatistics
Statistics for a Users Photos.

Extensions

DynamicResizeUrl
Creates photo urls which dynamically resize the original image.
RequestExtentions
Extensions on Request.

Functions

resizePhotoUrl(Uri photoUrl, {int quality, int width, int height, int devicePixelRatio, ImageFormat format, ResizeFitMode fit, Map<String, String> imgixParams}) Uri
Returns a new Uri, Based on photoUrl, under which a dynamically resized version of the original photo can be accessed. [...]

Enums

ContentFilter
Limit results by content safety. [...]
ImageFormat
The output format to convert the image to. [...]
PhotoColor
Filter results by color.
PhotoOrder
How to sort the photos.
PhotoOrientation
Filter search results by photo orientation.
ResizeFitMode
Controls how the output image is fit to its target dimensions after resizing, and how any background areas will be filled. [...]
StatisticsResolution
The frequency of the stats.

Typedefs

BodyDeserializer<T>(dynamic body) → T