command_it
command_it is a way to manage your state based on `ValueListenable` and the `Command` design pattern. It is a rebranding of flutter_command.
9.5.1
4.6K downloads/mo
#3962 most downloaded on pub.dev
flutter-it/command_it
What this package is like to depend on
Last release 6 months ago
20 Feb 2026
Ships fairly regularly
a new release about every 3 months
Most releases are documented
notes for 8 of 13 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
13 releases · first in 2025
12 releases in the last 12 months
see the full history below
Release timeline
13 releases · Jul 2025 to Feb 2026Releases
latest 13-
9.5.120 Feb 2026Nothing published for this version
-
9.5.030 Nov 2025Release notes
Open source →New ValueListenable extension that triggers a target command when
the source value changes. Works on any ValueListenable including
commands, isRunning, results, or plain ValueNotifier.Features:
- Optional transform function to convert source value to target param
- Smart type handling: direct pass if types match, no-param call if not
- Returns ListenableSubscription for manual cancellation
-
9.4.225 Nov 2025 -
9.4.124 Nov 2025Nothing published for this version
-
9.4.024 Nov 2025Release notes
Open source →Adds built-in progress tracking, status messages, and cooperative cancellation
to commands via ProgressHandle.New Features:
- ProgressHandle class with progress (0.0-1.0), statusMessage, and isCanceled properties
- 8 new factory methods: createAsyncWithProgress and createUndoableWithProgress variants
- New Command properties: progress, statusMessage, isCanceled, cancel()
- MockCommand progress simulation support with updateMockProgress(), updateMockStatusMessage(), mockCancel()
- Zero-overhead design: Commands without progress use static default notifiers
Technical Details:
- Non-nullable API using static default notifiers for commands without handles
- Cooperative cancellation pattern (ValueListenable-based for external integration)
- Full test coverage: 23 passing tests including MockCommand simulation
- Compatible with external cancellation tokens (e.g., Dio CancelToken)
Breaking Changes: None (fully backward compatible)
-
9.3.024 Nov 2025Nothing published for this version
-
9.2.022 Nov 2025Nothing published for this version
-
9.1.122 Nov 2025Release notes
Open source →Improvements:
- Renamed FirstLocalThenGlobalErrorFilter to GlobalIfNoLocalErrorFilter for better clarity
- Name now clearly indicates "global if no local handler" behavior
New Features:
- Added GlobalErrorFilter that routes errors ONLY to global handler
- Returns ErrorReaction.globalHandler (not firstLocalThenGlobal)
- Useful when you want all errors to go global regardless of local listeners
Fixes:
- Removed incorrectly deprecated GlobalErrorFilter from v9.1.0
- Replaced with correct implementation
Tests:
- Added test for GlobalErrorFilter behavior
- All 38 tests passing
-
9.1.022 Nov 2025Release notes
Open source →New Features:
- Added Command.globalErrors stream for reactive error monitoring
- Stream emits all globally-routed command errors
- Perfect for analytics, crash reporting, and UI notifications
- watch_it integration with registerStreamHandler
Improvements:
- Renamed ErrorHandler* classes to *ErrorFilter pattern
- Deprecated old names (removed in v10.0.0)
- Added deprecated_member_use_from_same_package: ignore to analysis_options.yaml
- Removed old docsite folder (docs now at flutter-it.dev)
Tests:
- Added tests for new ErrorFilter classes
- Added comprehensive tests for globalErrors stream
- All 36 tests passing
Documentation:
- Updated global_configuration.md with globalErrors section
- Updated error_handling.md with stream examples
- Updated README.md with link to stream docs
-
9.0.215 Nov 2025 -
9.0.114 Nov 2025 -
9.0.014 Nov 2025 -
8.0.019 Jul 2025Nothing published for this version