one method

void one (
  1. String types,
  2. QueryEventListener handler,
  3. {String selector}
)

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
  • 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.

Implementation

void one(String types, QueryEventListener handler, {String selector});