onToggle method

Details onToggle(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)

The toggle event fires when the open/closed state of a <details> element is toggled. Read more...

Implementation

Details onToggle(Function(Element, Event)? fun) {
  if (fun != null) on.call('toggle', fun);
  return this;
}