From 9cd6644c9562143f68ee5a5ff96ceaf194268265 Mon Sep 17 00:00:00 2001 From: Drawner Date: Mon, 23 Oct 2023 15:58:36 -0500 Subject: [PATCH] 4.8.0 --- CHANGELOG.md | 4 ++++ lib/state_extended.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2081d4f..9d64ba1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ +## 4.8.0 +October 23, 2023 +- State? to StateX? for getter startState & endState + ## 4.7.0+3 September 27, 2023 - Introduced new event handler: hiddenLifecycleState() diff --git a/lib/state_extended.dart b/lib/state_extended.dart index 79b620a..f3709a8 100644 --- a/lib/state_extended.dart +++ b/lib/state_extended.dart @@ -1390,11 +1390,11 @@ mixin _MapOfStates on State { /// Return the first State object // Bit of overkill, but some programmers don't appreciate Polymorphism. - State? get startState => _nextStateX(); + StateX? get startState => _nextStateX(); /// Return the 'latest' State object // Bit of overkill, but some programmers don't appreciate Polymorphism. - State? get endState => _nextStateX(reversed: true); + StateX? get endState => _nextStateX(reversed: true); /// Loop through the list and return the next available State object StateX? _nextStateX({bool? reversed}) { diff --git a/pubspec.yaml b/pubspec.yaml index 10cc3da..6060245 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.7.0+3 +version: 4.8.0 homepage: https://www.andrioussolutions.com repository: https://github.com/AndriousSolutions/state_extended