NhostClient class
API client for accessing Nhost's authentication and storage APIs.
User authentication and management is provided by the auth service, which implements the Nhost Authentication API.
File storage is provided by the storage service, which implements the Nhost Storage API.
Additional packages for working with GraphQL and Flutter can be found at https://pub.dev/publishers/nhost.io
Constructors
- NhostClient({Subdomain? subdomain, ServiceUrls? serviceUrls, AuthStore? authStore, Duration? tokenRefreshInterval, Client? httpClientOverride})
- Constructs a new Nhost client.
Properties
- auth → NhostAuthClient
-
The Nhost authentication service.
no setter
- functions → NhostFunctionsClient
-
The Nhost serverless functions service.
no setter
- gqlEndpointUrl → String
-
The GraphQL endpoint URL.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → Client
-
The HTTP client used by this client's services.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceUrls → ServiceUrls?
-
The Nhost project's backend region
final
- storage → NhostStorageClient
-
The Nhost file storage service.
no setter
- subdomain → Subdomain?
-
The Nhost project's backend subdomain and region
final
Methods
-
close(
) → void - Releases the resources used by this client.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited