From 14fc0e5ca807a4c3b80c43e606dc6ebd7f794021 Mon Sep 17 00:00:00 2001 From: chunhtai <47866232+chunhtai@users.noreply.github.com> Date: Wed, 22 Jan 2020 11:03:01 -0800 Subject: [PATCH] soft transition for the mustcallsuper in Element forgetChild (#49246) --- packages/flutter/lib/src/widgets/framework.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index ae6f1ffa10..f63eb78a43 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -3349,7 +3349,12 @@ abstract class Element extends DiagnosticableTree implements BuildContext { /// The element will still have a valid parent when this is called. After this /// is called, [deactivateChild] is called to sever the link to this object. @protected - void forgetChild(Element child); + void forgetChild(Element child) { + // TODO(chunhtai): Creates empty body for subclass to call super. This will + // enable us to fix internal tests pro-actively for upcoming breaking + // change. + // https://github.com/flutter/flutter/issues/43780. + } void _activateWithParent(Element parent, dynamic newSlot) { assert(_debugLifecycleState == _ElementLifecycle.inactive);