once method

  1. @JS("once")
Future once(
  1. String eventName,
  2. Function func
)

Add a listener to be triggered for only the next eventName event, at which time it will be removed.

Implementation

@JS("once")
external Future once(String eventName, Function func);