首页 新闻 会员 周边 捐助

Flutter这种实现方式为什么不会报循环引用的错误呢?

0
悬赏园豆:5 [待解决问题] 浏览: 59次
复制代码
class RandomWordsState extends State<RandomWords> {
  @override
  Widget build(BuildContext context) {
    final wordPair = new WordPair.random();
    return new Text(wordPair.asPascalCase);
  }
}

class RandomWords extends StatefulWidget {
  @override
  createState() => new RandomWordsState();
}
复制代码
hexllo的主页 hexllo | 菜鸟二级 | 园豆:318
提问于:2022-01-08 10:24
< > 人人可用的开源BI工具
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册
Top