onDestroy method

WidgetElement onDestroy(
  1. dynamic fun()?
)
inherited

The event is activated when Widget is removed from the Reio Virtual DOM.

Implementation

WidgetElement onDestroy(Function()? fun) {
  _node.onDestroy = fun;
  return this;
}