diff --git a/packages/flutter/lib/src/widgets/automatic_keep_alive.dart b/packages/flutter/lib/src/widgets/automatic_keep_alive.dart index bd40d2aa80f..e5573db4a98 100644 --- a/packages/flutter/lib/src/widgets/automatic_keep_alive.dart +++ b/packages/flutter/lib/src/widgets/automatic_keep_alive.dart @@ -319,19 +319,6 @@ class KeepAliveNotification extends Notification { /// consider using [AutomaticKeepAliveClientMixin], which uses a /// [KeepAliveHandle] internally. class KeepAliveHandle extends ChangeNotifier { - /// Trigger the listeners to indicate that the widget - /// no longer needs to be kept alive. - /// - /// This method does not call [dispose]. When the handle is not needed - /// anymore, it must be [dispose]d regardless of whether notifying listeners. - @Deprecated( - 'Use dispose instead. ' - 'This feature was deprecated after v3.3.0-0.0.pre.', - ) - void release() { - notifyListeners(); - } - @override void dispose() { notifyListeners(); @@ -366,7 +353,6 @@ mixin AutomaticKeepAliveClientMixin on State { } void _releaseKeepAlive() { - // Dispose and release do not imply each other. _keepAliveHandle!.dispose(); _keepAliveHandle = null; }