onLoad method

Script onLoad(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)

The load event is fired when the whole page has loaded, including all dependent resources such as stylesheets, scripts, iframes, and images. Read more...

Implementation

Script onLoad(Function(Element, Event)? fun) {
  if (fun != null) on.call('load', fun);
  return this;
}