getClient method
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;
}