flutter - “ControllerMVC*”类型的值不能分配给“DeliveryAddressesController?”类型的变量
问题描述
由于我更新了我的飞镖版本以支持空安全此错误
A value of type 'ControllerMVC*' can't be assigned to a variable of type 'DeliveryAddressesController?'.
Try changing the type of the variable, or casting the right-hand type to 'DeliveryAddressesController?'.
尝试分配时似乎出现_con = controller;
DeliveryAddressesController? _con;
_DeliveryAddressBottomSheetWidgetState() : super(DeliveryAddressesController()) {
_con = controller;
}
任何想法我如何解决这个错误
解决方案
推荐阅读
- c# - 如何正确实现双向流式 http 代理?
- python - 按值排序数组
- php - Laravel FormRequest 验证获取用户模型,有时直接获取名称
- json - SOLR - 使用邮递员 json 查询更新文档中的一个字段
- c++ - 升压序列化的输入流错误
- discord - 无法捕获 Discord 服务器上的所有人
- swift - 如何使用情节提要默认图像设置和图像到按钮?
- javascript - 如何格式化从后端获得的日期
- flutter - flutter : 如何在 flutter_pdfview 中切换夜间模式
- kotlin - onEach 更改 StateFlow 中的调度程序(kotlin 协程)