NhostGraphQLProvider constructor
NhostGraphQLProvider({
- Key? key,
- NhostClient? nhostClient,
- String? gqlEndpointUrl,
- GraphQLCache? cache,
- Widget? child,
Implementation
NhostGraphQLProvider({
Key? key,
this.nhostClient,
String? gqlEndpointUrl,
GraphQLCache? cache,
this.child,
}) : assert(nhostClient != null || gqlEndpointUrl != null),
gqlEndpointUrl = gqlEndpointUrl ?? nhostClient!.gqlEndpointUrl,
cache = cache ?? GraphQLCache(),
super(key: key);