create static method

Future<IoCompatibleClient> create({
  1. ClientSettings? settings,
  2. List<Interceptor>? interceptors,
})

Creates a new HTTP client asynchronously. Use this method if your app is already running to avoid blocking the UI.

Implementation

static Future<IoCompatibleClient> create({
  ClientSettings? settings,
  List<Interceptor>? interceptors,
}) async {
  final rhttpClient = await RhttpClient.create(
    settings: (settings ?? const ClientSettings()),
    interceptors: interceptors,
  );
  return IoCompatibleClient._(rhttpClient);
}