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.
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.
Topic
A topic on Unsplash.
Links for a Photo.
Topics
Provides access to resources related to Topic.
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 User.

Enums

ContentFilter
Limit results by content safety.
CropMode
Crop mode controls how the image is aligned when fit=crop is set.
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.
TopicOrder
How to sort Topics.

Extensions

DynamicResizeUrl on Uri
Creates photo urls which dynamically resize the original image.
RequestExtension on Request<T>
Extension on Request.

Functions

resizePhotoUrl(Uri photoUrl, {int? quality, int? width, int? height, CropMode? crop, int? devicePixelRatio, ImageFormat? format, bool? autoFormat, 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.

Typedefs

BodyDeserializer<T> = T Function(dynamic body)