You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add an onCancel stream to an web.HTMLInputElement with something like the following:
extensionAddOnCancelStreamToInputElementon web.HTMLInputElement {
web.ElementStream<web.Event> get onCancel =>const
web.EventStreamProvider<web.Event>('cancel').forElement(this);
}
However, I get the following error:
Undefined class 'ElementStream'.
Try changing the name to the name of an existing class, or creating a class with the name 'ElementStream'. dart(undefined_class)
2 questions here:
Can an onCancel Stream be added to the HTMLInputElement class somewhere here.
and/or expose the ElementStream<T> so I can add my own with the same helpers available for package:web.
The text was updated successfully, but these errors were encountered:
I'm trying to listen to the
cancel
event of anHTMLInputElement
, and instead of using the.oncancel
setter directly:web/lib/src/dom/html.dart
Lines 499 to 500 in 51e594b
I'm trying to add an
onCancel
stream to anweb.HTMLInputElement
with something like the following:However, I get the following error:
2 questions here:
onCancel
Stream be added to theHTMLInputElement
class somewhere here.ElementStream<T>
so I can add my own with the same helpers available for package:web.The text was updated successfully, but these errors were encountered: