onPlaying method

Audio onPlaying(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)

The playing event is fired after playback is first started, and whenever it is restarted. Read more...

Implementation

Audio onPlaying(Function(Element, Event)? fun) {
  if (fun != null) on.call('playing', fun);
  return this;
}