onError method

Img onError(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)

The error event is fired on an Element object when a resource failed to load, or can't be used. Read more...

Implementation

Img onError(Function(Element, Event)? fun) {
  if (fun != null) on.call('error', fun);
  return this;
}