init static method
dynamic
init({
- Client? httpClient,
- 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;
}
}