当前位置:   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);
去掉问号。

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/寸_铁/article/detail/926702
推荐阅读
  

闽ICP备14008679号