Skip to main content

mot 0.1.0 copy "mot: ^0.1.0" to clipboard
mot: ^0.1.0 copied to clipboard

A sober and efficient alternative to state management in Dart and Flutter. Subscribe and forget.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.0 - 2024-12-30 #

Added #

  • Beacon mixin for observable models
    • observe() with "self, not this" pattern
    • removeObserver() for manual cleanup (optional)
    • hasObserver() to check registration
    • notify() for microqueue-based notifications
    • notifySync() for synchronous testing
  • BeaconField<T> for observable fields
    • Automatic notification on value change
    • Equality check to avoid redundant notifications
  • Automatic cleanup via WeakReference + Finalizer
  • Notification coalescing via microtask queue
  • Error isolation (one failing callback doesn't stop others)
0
likes
150
points
7
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A sober and efficient alternative to state management in Dart and Flutter. Subscribe and forget.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on mot