initializeClient function

Client initializeClient(
  1. bool badCertificateCallback(
    1. X509Certificate,
    2. String,
    3. int
    )?,
  2. String findProxy(
    1. Uri
    )?
)

Implementation

Client initializeClient(
  bool Function(X509Certificate, String, int)? badCertificateCallback,
  String Function(Uri)? findProxy,
) {
  return IOClient(
    HttpClient()
      ..badCertificateCallback = badCertificateCallback
      ..findProxy = findProxy,
  );
}