Unverified Commit eca0cf38 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

fix the tree (#66783)

parent c2e43403
...@@ -427,7 +427,7 @@ class _CupertinoAlertRenderElement extends RenderObjectElement { ...@@ -427,7 +427,7 @@ class _CupertinoAlertRenderElement extends RenderObjectElement {
_CupertinoAlertRenderWidget get widget => super.widget as _CupertinoAlertRenderWidget; _CupertinoAlertRenderWidget get widget => super.widget as _CupertinoAlertRenderWidget;
@override @override
_RenderCupertinoAlert? get renderObject => super.renderObject as _RenderCupertinoAlert?; _RenderCupertinoAlert get renderObject => super.renderObject as _RenderCupertinoAlert;
@override @override
void visitChildren(ElementVisitor visitor) { void visitChildren(ElementVisitor visitor) {
...@@ -480,11 +480,11 @@ class _CupertinoAlertRenderElement extends RenderObjectElement { ...@@ -480,11 +480,11 @@ class _CupertinoAlertRenderElement extends RenderObjectElement {
@override @override
void removeRenderObjectChild(RenderObject child, _AlertSections slot) { void removeRenderObjectChild(RenderObject child, _AlertSections slot) {
assert(child == renderObject!.contentSection || child == renderObject!.actionsSection); assert(child == renderObject.contentSection || child == renderObject.actionsSection);
if (renderObject!.contentSection == child) { if (renderObject.contentSection == child) {
renderObject!.contentSection = null; renderObject.contentSection = null;
} else if (renderObject!.actionsSection == child) { } else if (renderObject.actionsSection == child) {
renderObject!.actionsSection = null; renderObject.actionsSection = null;
} }
} }
...@@ -492,10 +492,10 @@ class _CupertinoAlertRenderElement extends RenderObjectElement { ...@@ -492,10 +492,10 @@ class _CupertinoAlertRenderElement extends RenderObjectElement {
assert(slot != null); assert(slot != null);
switch (slot) { switch (slot) {
case _AlertSections.contentSection: case _AlertSections.contentSection:
renderObject!.contentSection = child as RenderBox; renderObject.contentSection = child as RenderBox;
break; break;
case _AlertSections.actionsSection: case _AlertSections.actionsSection:
renderObject!.actionsSection = child as RenderBox; renderObject.actionsSection = child as RenderBox;
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment