NhostStorageClient constructor
NhostStorageClient({
- required String url,
- UserSession? session,
- Client? httpClient,
subdomain
is the Nhost "subdomain" and "region" that can be found on your Nhost
project page.
for local development pass 'local' to subdomain
and leave region empty string '';
region
is the Nhost services Urls that can be found on
your Nhost self-hosted project page.
httpClientOverride
(optional) can be provided in order to customize the
requests made by the Nhost APIs, which can be useful for proxy
configuration and debugging.
Implementation
NhostStorageClient({
required String url,
UserSession? session,
http.Client? httpClient,
}) : _apiClient = ApiClient(
Uri.parse(url),
httpClient: httpClient ?? http.Client(),
),
_session = session ?? UserSession();