onLoadedData method

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

The loadeddata event is fired when the frame at the current playback position of the media has finished loading; often the first frame. Read more...

Implementation

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