Skip to content

Commit

Permalink
4.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Drawner committed Oct 23, 2023
1 parent a9b0999 commit 9cd6644
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
4 changes: 2 additions & 2 deletions lib/state_extended.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 9cd6644

Please sign in to comment.