flutter_operations 1.1.0
flutter_operations: ^1.1.0 copied to clipboard
Type-safe async operation state management for Flutter using sealed classes and exhaustive pattern matching.
1.1.0 #
BREAKING CHANGES:
- Removed
idle
parameter fromLoadingOperation
- Added
IdleOperation<T>
class extendingLoadingOperation<T>
- Changed
LoadingOperation
fromfinal
tobase
class - Added convenience getters:
hasNoData
,isLoading
,isIdle
,isSuccess
,isError
, etc. - Added
SuccessOperation.empty()
constructor andempty
property - Added
setIdle()
method to both mixins - Removed
doesGlobalRefresh
parameter from internal methods
Migration:
- Replace
LoadingOperation.idle
checks withoperation.isIdle
- Handle
IdleOperation
in pattern matching whenloadOnInit = false
- Update equality checks due to
LoadingOperation
structure changes
1.0.1 #
- Update README.md
1.0.0 #
- Initial release.