Imagine that you want to listen to all the clicks made for any anchor element on the page. Anchors on a page can be dynamically added / removed over the life of the page, and you want to register all click events, even when adding new ones.
Is there a way to associate a delegated event (e.g. in jQuery) in Dart using its standard libraries?
In jQuery, you can achieve this with element.on('click', '.selector', handler); .
source share