|
|
|
|
|
|
hasSameSuperclass = oldElementClass == newWidgetClass; |
|
|
|
return true; |
|
|
|
}); |
|
|
|
if (hasSameSuperclass && child.widget == newWidget) { |
|
|
|
if (child.slot != newSlot) { |
|
|
|
if (hasSameSuperclass && Equals(child.widget,newWidget)) { |
|
|
|
if (!Equals(child.slot, newSlot)) { |
|
|
|
updateSlotForChild(child, newSlot); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
if (child.slot != newSlot) { |
|
|
|
if (!Equals(child.slot, newSlot)) { |
|
|
|
D.assert(child.widget == newWidget); |
|
|
|
D.assert(Equals(child.widget, newWidget)); |
|
|
|
D.assert(() => { |
|
|
|
child.owner._debugElementWasRebuilt(child); |
|
|
|
return true; |
|
|
|