cached_streamable 1.1.1
cached_streamable: ^1.1.1 copied to clipboard
Simple interface for creating a streamable data source that caches it latest value.
1.1.1 #
- Adds
updateWhenmethod:
final counter = CachedStreamable<int>(
0,
// ensures only incrementing the value (doesn't update on `--`)
updateWhen: (oldValue, newValue) => oldValue < newValue,
);
1.1.0+1 #
- Fixes
READMEtypos
1.1.0 #
- Remove
abstractfrom class definition to allow inline streamable creation
Example:
final counter = CachedStreamable<int>(0);
counter.value++;
BREAKING CHANGE #
- Use
valueinstead ofcache
1.0.2+2 #
- Update description
1.0.2+1 #
- Fixes
READMEtypos - Removes
documentationURL inpubspec.yaml
1.0.2 #
- Updates
metato1.7.0for compatibility
1.0.1 #
- Removes
mocktaildependency - Moves
metatodependencies(fromdev_dependencies)
1.0.0 #
- Initial version with
CachedStreamable<T>