Dispose KeepAliveHandle. (#108227)
This commit is contained in:
parent
e05ae3cac7
commit
fe16c206ea
@ -353,7 +353,9 @@ mixin AutomaticKeepAliveClientMixin<T extends StatefulWidget> on State<T> {
|
||||
}
|
||||
|
||||
void _releaseKeepAlive() {
|
||||
// Dispose and release do not imply each other.
|
||||
_keepAliveHandle!.release();
|
||||
_keepAliveHandle!.dispose();
|
||||
_keepAliveHandle = null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user