diff --git a/packages/flutter/lib/src/widgets/restoration.dart b/packages/flutter/lib/src/widgets/restoration.dart index ea865f414b..24a195ebe2 100644 --- a/packages/flutter/lib/src/widgets/restoration.dart +++ b/packages/flutter/lib/src/widgets/restoration.dart @@ -793,7 +793,7 @@ mixin RestorationMixin on State { // There's nothing to do if: // - We don't have a parent to claim a bucket from. // - Our current bucket already uses the provided restoration ID. - // - There's a restore pending, which means that didUpdateDependencies + // - There's a restore pending, which means that didChangeDependencies // will be called and we handle the rename there. if (_currentParent == null || _bucket?.restorationId == restorationId || restorePending) { return;