AppHttpClient constructor Null safety
- {BaseOptions? options,
- List<
Interceptor> interceptors = const []}
Creates HTTP client.
Implementation
AppHttpClient({
BaseOptions? options,
List<Interceptor> interceptors = const [],
}) {
httpClientAdapter = getAdapter();
this.options = options ?? BaseOptions();
this.interceptors.addAll(interceptors);
}