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
updateWhen
method:
final counter = CachedStreamable<int>(
0,
// ensures only incrementing the value (doesn't update on `--`)
updateWhen: (oldValue, newValue) => oldValue < newValue,
);
1.1.0+1 #
- Fixes
README
typos
1.1.0 #
- Remove
abstract
from class definition to allow inline streamable creation
Example:
final counter = CachedStreamable<int>(0);
counter.value++;
BREAKING CHANGE #
- Use
value
instead ofcache
1.0.2+2 #
- Update description
1.0.2+1 #
- Fixes
README
typos - Removes
documentation
URL inpubspec.yaml
1.0.2 #
- Updates
meta
to1.7.0
for compatibility
1.0.1 #
- Removes
mocktail
dependency - Moves
meta
todependencies
(fromdev_dependencies
)
1.0.0 #
- Initial version with
CachedStreamable<T>