view
Adds a subscription to changes of the contents of the list.
When handler is initially added, it is called receiving all elements currently in the list. Every time an element is added to the list (as a new one or as an update of an existing one), the handler is called receiving the new element and index. The Lifetime instance passed to the handler expires when the element is removed from the list.
The subscription is removed when the given lifetime expires.
Adds a subscription to changes of the contents of the list, receiving the index and value as separate parameters.
When handler is initially added, it is called receiving all elements currently in the list. Every time an element is added to the list (as a new one or as an update of an existing one), the handler is called receiving the new element and index. The Lifetime instance passed to the handler expires when the element is removed from the list.
The subscription is removed when the given lifetime expires.