UnsplashClient constructor
UnsplashClient({
- required ClientSettings settings,
- Client? httpClient,
Creates a new instance of the UnsplashClient.
settings must not be null
.
If no httpClient
is provided, one is created.
Implementation
UnsplashClient({
required this.settings,
http.Client? httpClient,
}) : _http = httpClient ?? http.Client(),
logger = Logger(settings.loggerName);