当前位置:   article > 正文

flutter2 key的写法改变_dart const app({key? key}) : super(key: key) 为什么这么

dart const app({key? key}) : super(key: key) 为什么这么写

形如const MyApp({Key? key}) : super(key: key);
改为const MyApp({Key key}) : super(key: key);
去掉问号。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/寸_铁/article/detail/926702
推荐阅读
  

闽ICP备14008679号