DatabaseClient constructor
DatabaseClient({})
Creates a new DatabaseClient instance
Implementation
DatabaseClient({
required this.baseUrl,
required this.tokenStorage,
http.Client? httpClient,
this.timeout = const Duration(seconds: 30),
Map<String, String>? headers,
}) : _client = httpClient ?? http.Client(),
_customHeaders = headers ?? const {};