PackRuble / cardoteka

The best type-safe wrapper over SharedPreferences. ⭐ Why so? -> strongly typed cards for access to storage -> don't think about type, use get|set -> can work with nullable values -> callback based updates
https://t.me/+AkGV73kZi_Q1YTMy
Apache License 2.0
3 stars 0 forks source link

`WatcherImpl` must have `_watchers` nullable type #6

Open PackRuble opened 10 months ago

PackRuble commented 10 months ago

I think to clean up the linked resources altogether, we might as well not create an extra object. Let me remind you of its current form:

mixin WatcherImpl on Cardoteka implements Watcher {
  final _watchers = <Card, List<ValueCallback>>{};
  //...
}

This would add unnecessary checks to the attach method (and WatcherImplDebug), but it seems like the right solution.