我将一个bool值存储在共享首选项中,并使用main.dart文件中的future<bool>方法获取bool数据。我需要使用一个未来的构建器来处理这个函数,这就是我遇到错误的地方: Argument type 'Future<bool?> Function()' can't be assigned to the parameter type 'Future<bool>' 下面是我的代码: Authenticate extends StatelessWid
我试图把一个响应(来自一个api)放在地图上,但是我不能让它工作。代码如下:"response“字变红并显示错误,我无法运行应用程序。The argument type 'Response<dynamic>' can't be assigned to the parameter type 'String'.dartargument_type_not_assig