When I subscribe to the onChange event of an InputElement, the event type is Event and has the target property set:
new InputElement()
..onChange.listen((e) {
print(e.runtimeType);
print(e.target);
});
How do I copy this behavior (for my own custom input box) and create events with the target property set?
None of the Event constructors allow you to pass a target, and the target property is get-only.
I tried finding the source for InputElement to see how it worked; but was unable to locate it in the Dart repo :(