Last updated:
0 purchases
key observer
key_observer #
key_observer is a small library to observe by key path with callback.
Subject subject = SimpleSubject.create();
subject.observe(["myProperty", "myProperty2.myProperty"], (keys) {
print(keys);
});
//...
subject.didChange(["myProperty.a.b"]);
// [myProperty]
//...
subject.didChange(["myProperty.a, myProperty2"]);
// [myProperty, myProperty2.myProperty]
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.