init static method

dynamic init({
  1. Client? httpClient,
  2. Dio? dio,
})

Implementation

static init({http.Client? httpClient, Dio? dio}) {
  if (httpClient == null && dio == null) {
    throw ArgumentError(
      'At least one of httpClient or dio must be provided.',
    );
  }
  if (null != httpClient) {
    return FNIHttpCLient(httpClient);
  } else {
    return FNIDioClient(dio).dio;
  }
}