hidden method

WidgetElement hidden(
  1. bool boolean
)
inherited

The hidden global attribute indicating that the browser should not render the contents of the element. Read more...

Implementation

WidgetElement hidden(bool boolean) {
  if (boolean && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('hidden', '');
    node.attrs!.add(attr);
  }
  return this;
}