getClient method

Future<GraphQLClient> getClient([
  1. String? token
])

Implementation

Future<GraphQLClient> getClient([String? token]) async {
  GraphQLClient _client = GraphQLClient(
    link: HttpLink(
      endpointUrl,
      //defaultHeaders: headers,
      defaultHeaders: <String, String>{
        'Authorization': 'APIdjasdkjasdkjahsdkhasdAASSASas',
      },
    ),
    cache: GraphQLCache(store: HiveStore()),
  );

  return _client;
}