RequestClient constructor

RequestClient({
  1. String baseUrl = 'your_default_base_url',
  2. List<Interceptor>? interceptors,
})

Implementation

factory RequestClient({
  String baseUrl = 'your_default_base_url',
  List<Interceptor>? interceptors,
}) {
  _instance ??= RequestClient._internal(
    baseUrl: baseUrl,
    interceptors: interceptors,
  );
  return _instance!;
}