首页 新闻 会员 周边

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

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

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