commandy 0.1.21
commandy: ^0.1.21 copied to clipboard
A modern Flutter package for managing asynchronous commands and state effectively.
0.1.1 - 2024-12-17 #
Added #
- Introduced
ViewModelSelector, a new widget that listens to a specific property of aChangeNotifier-based ViewModel and rebuilds only when the selected value changes. - Optimized UI updates by avoiding unnecessary rebuilds.
Changed #
- Updated the Timer example to use the new
ViewModelSelectorfor improved efficiency and cleaner code.
0.1.0 - 2024-12-06 #
Added #
- Initial implementation of the Commandy package.
Resultclass with subclasses:Success<T>to represent successful operations.FailureResult<T>to handle errors with detailed information.
Command<T, Params>class:- Enables asynchronous actions and notifies the command's state via
ValueNotifier.
- Enables asynchronous actions and notifies the command's state via
StreamCommand<T, Params>class:- Handles stream-based actions with automatic subscription management and error handling.
CommandListenerwidget:- Listens for changes in multiple commands and triggers custom callbacks.
- Comprehensive documentation for all public classes.
- Compatibility with Dart 3 and Flutter.
