How to get localTarget in listener in polymer dart 1.0?

Issue

As I suppose the most safe way of using events target (due to event retargeting) is to obtain normalized localTarget or rootTarget, which implies that usefulness of Event.target is quite limited. Am I right?
So in every listener that wants to use target data I have to do:

onTap(Event ev, [_]){
    var target = Polymer.dom(convertToJs(ev)).localTarget;
    [...]
}

Are there any shorthands for this?

Solution

This should be fixed in the most recent polymer_interop version: 1.0.0-rc.2

Answered By – Günter Zöchbauer

Answer Checked By – Katrina (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.