nhost_flutter_graphql library

Classes

AuthStore
Interface implemented by objects responsible for persisting authentication information between restarts of an app.
ImageCornerRadius
The corner radius applied to an image.
ImageTransform
Instructs the backend on how to transform a stored image.
NhostAuthClient
The Nhost authentication service.
NhostAuthProvider
Exposes Nhost authentication information to its subtree.
NhostClient
API client for accessing Nhost's authentication and storage APIs.
NhostFunctionsClient
Client for calling Nhost serverless functions.
NhostGraphQLProvider
Provides a GraphQLProvider to this widget's subtree, configured to access Nhost.
NhostGraphQLProviderState
NhostStorageClient
The Nhost storage service.
ServiceUrls
Requires when constructing SDK for self-host projects
Session
Represents a user-authenticated session with Nhost.
Subdomain
Requires when construction SDK for cloud or localhost

Properties

debugLogNhostErrorsToConsole bool
When true, errors will be printed to the console via Logger.root (from the logging package). When false, no logging will take place.
getter/setter pair

Functions

combinedLinkForNhost(NhostClientBase nhostClient, {Map<String, String>? defaultHeaders, Client? httpClientOverride}) → Link
Creates a link that that configures automatically based on nhostClient's authentication state, and will select HTTP or Web Socket transport as appropriate.
createNhostGraphQLClient(NhostClientBase nhostClient, {GraphQLCache? gqlCache, Map<String, String>? defaultHeaders, Client? httpClientOverride}) → GraphQLClient
Constructs a GQL client for accessing Nhost.io's backend.
createNhostGraphQLClientForAuth(String nhostGqlEndpointUrl, HasuraAuthClient nhostAuth, {GraphQLCache? gqlCache, Map<String, String>? defaultHeaders, Client? httpClientOverride}) → GraphQLClient
Constructs a GQL client for accessing Nhost.io's backend.
createNhostServiceEndpoint({required String subdomain, required String region, required String service, String apiVersion = 'v1', String protocol = 'https'}) String
Generate Endpoint for each service and based on the subdomain

Typedefs

AuthStateChangedCallback = void Function(AuthenticationState authenticationState)
Signature for callbacks that respond to authentication changes.
UnsubscribeDelegate = void Function()
Signature for functions that remove their associated callback when called.

Exceptions / Errors

ApiException
Thrown by ApiClient to indicate a failed API call.