UnsplashClient class
A client for accessing the unsplash api.
Http calls are made through the http package, which provides a platform independent client, making the UnsplashClient platform independent as well.
Constructors
- UnsplashClient({required ClientSettings settings, Client? httpClient})
- Creates a new instance of the UnsplashClient.
Properties
- baseUrl → Uri
-
The base url of the unsplash api.
final
- collections → Collections
-
Provides access to resources related to Collection.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
The
Logger
used by this instance.final - photos → Photos
-
Provides access to resources related to Photo.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- search → Search
-
Search for resources.
no setter
- settings → ClientSettings
-
The ClientSettings used by this client.
final
- stats → Stats
-
Provides access to the TotalStats and MonthStats resources.
no setter
- topics → Topics
-
Provides access to resources related to Topic.
no setter
- users → Users
-
Provides access to resources related to User.
no setter
Methods
-
close(
) → void - Closes this client and frees allocated resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited