Beispiel #1
0
        public override void update(Widget newWidgetRaw)
        {
            var newWidget = (SliverMultiBoxAdaptorWidget)newWidgetRaw;
            SliverMultiBoxAdaptorWidget oldWidget = widget;

            base.update(newWidget);
            SliverChildDelegate newDelegate = newWidget.del;
            SliverChildDelegate oldDelegate = oldWidget.del;

            if (newDelegate != oldDelegate &&
                (newDelegate.GetType() != oldDelegate.GetType() || newDelegate.shouldRebuild(oldDelegate)))
            {
                performRebuild();
            }
        }
Beispiel #2
0
 public SliverMultiBoxAdaptorElement(SliverMultiBoxAdaptorWidget widget) : base(widget)
 {
 }