GraphQLClientProvider class
Singleton provider for the configured GraphQLClient.
Registered in DI via configureGraphqlDi():
ZuraffaContainer.instance.registerSingleton<GraphQLClient>(
() => GraphQLClientProvider.instance.client,
);
The provider lazily initializes the client on first access.
Properties
- client → GraphQLClient
-
The configured
GraphQLClient. Lazily built on first access.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Whether the provider has been initialized.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Dispose the current client. Next client access will rebuild.
-
initialize(
GraphQLClientConfig config) → void - Initialize with configuration. Must be called before 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
Static Properties
- instance → GraphQLClientProvider
-
final