FlutterDocsClient constructor

FlutterDocsClient({
  1. required CacheManager cacheManager,
  2. HttpClientWrapper? httpClient,
})

Creates a new Flutter docs client.

An optional httpClient can be provided for testing; otherwise a default HttpClientWrapper is created automatically.

Implementation

FlutterDocsClient({
  required CacheManager cacheManager,
  HttpClientWrapper? httpClient,
})  : _cache = cacheManager,
      _http = httpClient ?? HttpClientWrapper();