diff --git a/CHANGELOG.md b/CHANGELOG.md index 01f6cd0..7705d03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## [2.0.1] - 2024-06-26 +## [2.0.2] - 2024-08-06 - Fix: **atomAction** now returning **FutureOr**. - Fix: propertie **when** in **useAtomState** hook; diff --git a/lib/src/functions.dart b/lib/src/functions.dart index 52d0933..decbd15 100644 --- a/lib/src/functions.dart +++ b/lib/src/functions.dart @@ -96,7 +96,7 @@ Atom asyncSelector( /// counterAction(); /// ``` AtomAction atomAction( - FutureOr Function(SetState set) scope, { + FutureOr Function(SetState set) scope, { String? key, }) { return _AtomAction(scope, key ?? 'atomAction'); @@ -123,7 +123,7 @@ AtomAction atomAction( /// counterAction(); /// ``` AtomAction1 atomAction1( - FutureOr Function(SetState set, A action) scope, { + FutureOr Function(SetState set, A action) scope, { String? key, }) { return _AtomAction1(scope, key ?? 'atomAction1'); @@ -150,7 +150,7 @@ AtomAction1 atomAction1( /// counterAction(); /// ``` AtomAction2 atomAction2( - FutureOr Function(SetState set, A1 arg1, A2 arg2) scope, { + FutureOr Function(SetState set, A1 arg1, A2 arg2) scope, { String? key, }) { return _AtomAction2(scope, key ?? 'atomAction2'); @@ -177,7 +177,7 @@ AtomAction2 atomAction2( /// counterAction(); /// ``` AtomAction3 atomAction3( - FutureOr Function( + FutureOr Function( SetState set, A1 arg1, A2 arg2, diff --git a/pubspec.yaml b/pubspec.yaml index 9f20eab..e67d909 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: asp description: ASP (Atomic State Pattern) offers a simplified, Predictable and Powerful State Management forĀ Flutter. -version: 2.0.1 +version: 2.0.2 homepage: https://github.com/Flutterando/asp documentation: https://asp.flutterando.com.br topics: [state-management]