NhostGraphQLProvider constructor

NhostGraphQLProvider({
  1. Key? key,
  2. NhostClient? nhostClient,
  3. String? gqlEndpointUrl,
  4. GraphQLCache? cache,
  5. 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);