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 in the handler.


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