解决 dio The name 'DefaultHttpClientAdapter' isn't a type

发布时间:2022-07-21浏览次数:0

支持注册ChatGPT Plus的OneKey虚拟卡
绑定Apple Pay、Google Pay、支付宝和微信支付进行日常消费

注册和了解更多 ->

silver

报错:

The name 'DefaultHttpClientAdapter' isn't a type, so it can't be used in an 'as' expression.
Try changing the name to the name of an existing type, or creating a type with the name 'DefaultHttpClientAdapter'.

因为 DefaultHttpClientAdapter这个class写到另一个dart文件中 ,在当前文件引进下面的文件就可以解决

import 'package:dio/adapter.dart';
字节笔记本扫描二维码查看更多内容