ApiClient.basicAuthentication constructor

ApiClient.basicAuthentication(
  1. Uri baseUri, {
  2. required String user,
  3. required String apiToken,
  4. Client? client,
})

Implementation

factory ApiClient.basicAuthentication(Uri baseUri,
    {required String user, required String apiToken, Client? client}) {
  client ??= Client();
  return ApiClient(baseUri,
      BasicAuthenticationClient(client, user: user, apiToken: apiToken));
}