AppHttpClient constructor Null safety

AppHttpClient(
  1. {BaseOptions? options,
  2. 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);
}