Typo in Documentation for Restoration with didChangeDependencies (#108659)

This commit is contained in:
涛涛 2022-08-06 00:23:05 +08:00 committed by GitHub
parent 8162214c8e
commit f1f559df73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -793,7 +793,7 @@ mixin RestorationMixin<S extends StatefulWidget> on State<S> {
// 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;