ApiConfig constructor
const
ApiConfig({})
Creates an immutable ApiConfig.
baseUrl and apiVersion are required. Other fields fall back to
sensible defaults: 30s timeout, no default headers, tenant header off.
Implementation
const ApiConfig({
required this.baseUrl,
required this.apiVersion,
this.timeout = const Duration(seconds: 30),
this.defaultHeaders = const {},
this.needTenantByDefault = false,
});