Unverified Commit f1f559df authored by 涛涛's avatar 涛涛 Committed by GitHub

Typo in Documentation for Restoration with didChangeDependencies (#108659)

parent 8162214c
...@@ -793,7 +793,7 @@ mixin RestorationMixin<S extends StatefulWidget> on State<S> { ...@@ -793,7 +793,7 @@ mixin RestorationMixin<S extends StatefulWidget> on State<S> {
// There's nothing to do if: // There's nothing to do if:
// - We don't have a parent to claim a bucket from. // - We don't have a parent to claim a bucket from.
// - Our current bucket already uses the provided restoration ID. // - 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. // will be called and we handle the rename there.
if (_currentParent == null || _bucket?.restorationId == restorationId || restorePending) { if (_currentParent == null || _bucket?.restorationId == restorationId || restorePending) {
return; return;
......
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