From f1f559df7384558edfa449c2aa571eb07a1ea1bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=9B=E6=B6=9B?= Date: Sat, 6 Aug 2022 00:23:05 +0800 Subject: [PATCH] Typo in Documentation for Restoration with didChangeDependencies (#108659) --- packages/flutter/lib/src/widgets/restoration.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/restoration.dart b/packages/flutter/lib/src/widgets/restoration.dart index ea865f414be..24a195ebe28 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;