one abstract method
Register a one-time handler
for events of given types
. Once called,
- the handler will be unregistered.
-
- If
selector
is provided, only the descendant elements matched by the
- If
- selector will trigger the event. If omitted or null, the event will always
- be triggered.
-
- If data is provided, you can retrieve it in
event.data
in the handler.
- If data is provided, you can retrieve it in
Implementation
void one(String types, QueryEventListener handler, {String? selector});