onPlay method

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

The play event is fired when the paused property is changed from true to false, as a result of the play method, or the autoplay attribute. Read more...

Implementation

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