您当前的位置: 首页 >  flutter

郭梧悠

暂无认证

  • 1浏览

    0关注

    402博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Flutter之_slot 插槽属性详解

郭梧悠 发布时间:2020-09-02 15:14:42 ,浏览量:1

阅读本博客的前提是博主假设已经了解Element和Widget的关系,以及Widget的基本构建过程。如果不了解可以先阅读博主的:Flutter之Widget构建过程详解。本文主要分析下Element中的一个_slot属性,该属性在Widget的更新机制中也发挥了重要作用,明白了这个属性的作用,后面在分析其他源码的时候就有所帮助。


abstract class Element extends DiagnosticableTree implements BuildContext {
   
   //第一句注释
   /// Information set by parent to define where this child fits in its parent's
  /// child list.
  
  
关注
打赏
1663674776
查看更多评论
立即登录/注册

微信扫码登录

0.0581s