once method

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

Subscribe once to event calling listener when the event occurs.

Implementation

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