UnsplashClient constructor

UnsplashClient({
  1. required ClientSettings settings,
  2. 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);