Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit e17b1ce

Browse files
committed
V7.1.0
1 parent 29fc8bb commit e17b1ce

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[7.1.0] 27.11.2024
2+
* adding `isExecutingSync` to allow better chaining of commands
13
[7.0.1] 27.11.2024
24
* ensure that isExecuting is set back to false before we notify any result listeners.
35
[7.0.0] 14.11.2024

lib/flutter_command.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,13 @@ abstract class Command<TParam, TResult> extends CustomValueNotifier<TResult> {
356356
_commandResult;
357357

358358
/// `ValueListenable` that changes its value on any change of the execution
359-
/// state change of the command
359+
/// state change of the command, to allow the UI to easier update its state
360+
/// this property is updated asyncronously
360361
ValueListenable<bool> get isExecuting => _isExecutingAsync;
362+
363+
/// `ValueListenable` that changes its value on any change of the execution
364+
/// like [isExecuting] but synchronous. If you want to use this as a trigger
365+
/// or a restriction for another command, you should use this property.
361366
ValueListenable<bool> get isExecutingSync => _isExecuting;
362367

363368
/// `ValueListenable<bool>` that changes its value on any change of the current

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_command
22
description: flutter_command is a way to manage your state based on `ValueListenable` and the `Command` design pattern.
3-
version: 7.0.1
3+
version: 7.1.0
44
homepage: https://github.com/escamoteur/flutter_command
55

66
environment:

0 commit comments

Comments
 (0)