ApiService constructor

ApiService(
  1. String endpoint, {
  2. bool logsActivation = true,
})

Implementation

ApiService(
  this.endpoint, {
  this.logsActivation = true,
}) : _client = GraphQLClient(
        link: HttpLink('$endpoint/api'),
        cache: GraphQLCache(),
        defaultPolicies: DefaultPolicies(
          query: Policies(
            fetch: FetchPolicy.noCache,
            error: ErrorPolicy.all,
          ),
        ),
      );