ephemeral_value 2.0.0
ephemeral_value: ^2.0.0 copied to clipboard
Ephemeral value types for Dart and Flutter. Easily represent loading, success, error, empty, and initial states in your app logic and UI.
2.0.0 #
Breaking changes #
Ephemeral.toInitialandEphemeral.toSuccessnow require an explicit non-nullTas the first argument. Optional value parameters and implicit “retain current value” behavior for these transitions are removed. Update call sites to pass the value for the new state (for exampletoSuccess(ephemeral.value!)when reusing the current payload), or usetoInitialFallback/toSuccessFallback(see Added).
Added #
Ephemeral.toInitialFallbackandEphemeral.toSuccessFallback— transition to initial/success using the current value without passing it (optionalmessage). Asserts in debug mode if the current value is null.
1.2.2 #
- Fixed issue with extension methods not accessible by projects.
1.2.1 #
- Added new unit test for new utility methods.
1.2.0 #
- Added more utility methods to EphemeralValue
1.1.0 #
- Added new builtin ephemeral states: RefreshingValue and StaleValue
1.0.0 #
- Initial version.