📌  相关文章
📜  dart 参数类型 'String' 不能分配给参数类型 'Uri' - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:02.505000             🧑  作者: Mango

代码示例4
More generally, if you previously used http.get(someString), http.post(someString), etc. you instead will need to use http.get(Uri.parse(someString)), http.post(Uri.parse(someString)), and so on. (package:http formerly called Uri.parse internally to convert a String into a Uri for you.)