mot 0.1.0
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 #
Beaconmixin for observable modelsobserve()with "self, not this" patternremoveObserver()for manual cleanup (optional)hasObserver()to check registrationnotify()for microqueue-based notificationsnotifySync()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)