无法将httpLink分配给链接。
static HttpLink httpLink = HttpLink(
uri: " .."
);
ValueNotifier<GraphQLClient> client1 = ValueNotifier(
GraphQLClient(cache: InMemoryCache(), link: httpLink//error is here
),
);错误:不能将参数类型'HttpLink‘分配给参数类型'Link’。(argument_type_not_assignable
发布于 2019-05-24 03:01:25
@CopsOnRoad解决了最初的问题-对于undefined location,你需要确保服务器正在运行,并且可以从你运行的环境中访问。
有关故障排除的帮助,请参阅this issue
https://stackoverflow.com/questions/56226609
复制相似问题