initState 必须调用 super.initState(); 否则报错

  @override
  void initState() {
//    initState 必须调用 super.initState(); 否则报错:info: This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method. (must_call_super at [qutoutiao_flutter] lib/routes/home/FeedList.dart:14)
    super.initState();
    _retrieveData();
  }

posted on   cag2050  阅读(1107)  评论(0编辑  收藏  举报

导航

点击右上角即可分享
微信分享提示