Skip to content

Commit

Permalink
V7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
escamoteur committed Nov 27, 2024
1 parent 29fc8bb commit e17b1ce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[7.1.0] 27.11.2024
* adding `isExecutingSync` to allow better chaining of commands
[7.0.1] 27.11.2024
* ensure that isExecuting is set back to false before we notify any result listeners.
[7.0.0] 14.11.2024
Expand Down
7 changes: 6 additions & 1 deletion lib/flutter_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,13 @@ abstract class Command<TParam, TResult> extends CustomValueNotifier<TResult> {
_commandResult;

/// `ValueListenable` that changes its value on any change of the execution
/// state change of the command
/// state change of the command, to allow the UI to easier update its state
/// this property is updated asyncronously
ValueListenable<bool> get isExecuting => _isExecutingAsync;

/// `ValueListenable` that changes its value on any change of the execution
/// like [isExecuting] but synchronous. If you want to use this as a trigger
/// or a restriction for another command, you should use this property.
ValueListenable<bool> get isExecutingSync => _isExecuting;

/// `ValueListenable<bool>` that changes its value on any change of the current
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: flutter_command
description: flutter_command is a way to manage your state based on `ValueListenable` and the `Command` design pattern.
version: 7.0.1
version: 7.1.0
homepage: https://github.com/escamoteur/flutter_command

environment:
Expand Down

0 comments on commit e17b1ce

Please sign in to comment.