diff --git a/CHANGELOG.md b/CHANGELOG.md index 3de549e..a17c4f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ +## 4.23.0 +August 05, 2024 +- @Deprecated('Use stateSet() instead.') + Widget state(WidgetBuilder? widgetFunc) { + ## 4.22.1 August 05, 2024 - didUpdateWidget(StatefulWidget oldWidget) { to didUpdateWidget(covariant T oldWidget) { diff --git a/lib/state_extended.dart b/lib/state_extended.dart index 37c852b..f3916ad 100644 --- a/lib/state_extended.dart +++ b/lib/state_extended.dart @@ -2249,8 +2249,8 @@ mixin InheritedWidgetStateMixin on State { /// Called when the State's InheritedWidget is called again /// This 'widget function' will be called again. - // Widget stateSet(WidgetBuilder? widgetFunc) => state(widgetFunc); - // @Deprecated('Use stateSet() instead.') + Widget stateSet(WidgetBuilder? widgetFunc) => state(widgetFunc); + @Deprecated('Use stateSet() instead.') Widget state(WidgetBuilder? widgetFunc) { widgetFunc ??= (_) => const SizedBox.shrink(); return useInherited && this is StateX diff --git a/pubspec.yaml b/pubspec.yaml index 6ae9e5c..126cc4e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: state_extended description: This class extends the capabilities of Flutter's State class and includes a controller. -version: 4.22.1 +version: 4.23.0 homepage: https://www.andrioussolutions.com repository: https://github.com/AndriousSolutions/state_extended