ApiDatasourceImpl constructor

ApiDatasourceImpl({
  1. Client? httpClient,
  2. required ParamsChatBot params,
  3. required String apiKey,
})

Implementation

ApiDatasourceImpl({
  http.Client? httpClient,
  required ParamsChatBot params,
  required String apiKey,
})  : _http = httpClient ?? http.Client(),
      _apiKey = apiKey,
      _params = params;