essential_dart 1.1.0
essential_dart: ^1.1.0 copied to clipboard
Reusable building blocks, patterns, and services for Dart to improve efficiency and code quality.
1.2.0 #
- Added
runandrunSyncmethods toTaskfor executing callbacks and returningTaskobjects. - Added
watchmethod toTaskfor creating streams that emitTaskstates.
1.1.0 #
- Added
TaskAPI for type-safe asynchronous operation state management - Added
TaskStateenum for explicit state representation - Added convenience transition methods:
toPending()- Transition to pending statetoRunning()- Transition to running statetoRefreshing()- Transition to refreshing state (allows null previousData)toRetrying()- Transition to retrying state (allows null previousData)toSuccess(T data)- Transition to success state with datatoFailure(Object error, {StackTrace? stackTrace})- Transition to failure state
- Added
stategetter to all Task classes - All transition methods automatically propagate label, tags, and initialData
- Updated state checking getters to use
TaskStateenum - Comprehensive test suite with 132 tests covering all functionality
1.0.0+1 #
- Updated package metadata and documentation.
1.0.0 #
- Initial release.
- Added
Memoizerutility for caching computation results.