flutter_watcher 1.0.4 copy "flutter_watcher: ^1.0.4" to clipboard
flutter_watcher: ^1.0.4 copied to clipboard

Streamlined state management in Flutter using ValueNotifier, with advanced features and helper functions.

1.0.4 #

  • This version returns the ListValueNotifierEx Accidentally removed from the previous version.

  • Added new NullableIterableValueNotifierEx for Nullable Iterable values inside the Watcher.

1.0.3 #

  • All extensions for the Watcher<T> class in Flutter have been enhanced. Included all missing actions for each Watcher<T> extension. Updated documentation for each action to provide clearer guidance and use-case examples.
    • These extensions allow for direct manipulation of the data types within Watcher<T>, mirroring operations typically performed on the underlying data types themselves.

Example Usage #

final boolWatcher = true.watcher;
boolWatcher.toggle();

final counter = 10.watcher;
counter.increment(2);

final urlWatcher = Uri.parse("https://example.com").watcher;
urlWatcher.updatePath("/newpage"); // without the extension u would use `urlWatcher.value.updatePath("/newpage");` 

final listWatcher = [1,2,3].watch;
listWatcher.clear();

1.0.2 #

1.0.1 #

  • UPDATE: Updated the docs.

1.0.0 #

  • INITIAL: Initial release.
15
likes
110
pub points
56%
popularity

Publisher

unverified uploader

Streamlined state management in Flutter using ValueNotifier, with advanced features and helper functions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_helper_utils, hive, hive_flutter

More

Packages that depend on flutter_watcher