removeIf method

WidgetElement removeIf({
  1. required Widget widget,
  2. required bool condition()?,
})
inherited

Removes WidgetElement from the HTML DOM if the condition is true.

Implementation

WidgetElement removeIf(
    {required Widget widget, required bool Function()? condition}) {
  widget.remOnceNodes.add([_node, condition]);
  return this;
}