cached_streamable 1.1.1 copy "cached_streamable: ^1.1.1" to clipboard
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 of cache

1.0.2+2 #

  • Update description

1.0.2+1 #

  • Fixes README typos
  • Removes documentation URL in pubspec.yaml

1.0.2 #

  • Updates meta to 1.7.0 for compatibility

1.0.1 #

  • Removes mocktail dependency
  • Moves meta to dependencies (from dev_dependencies)

1.0.0 #

  • Initial version with CachedStreamable<T>
1
likes
160
points
587
downloads

Publisher

unverified uploader

Weekly Downloads

Simple interface for creating a streamable data source that caches it latest value.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on cached_streamable