onEnded method

Video onEnded(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)

The ended event is fired when playback or streaming has stopped because the end of the media was reached or because no further data is available. Read more...

Implementation

Video onEnded(Function(Element, Event)? fun) {
  if (fun != null) on.call('ended', fun);
  return this;
}