form method

FieldSet form(
  1. String id, {
  2. bool? removeIf,
})

This attribute takes the value of the id attribute of a <form> element you want the <fieldset> to be part of, even if it is not inside the form. Read more...

Implementation

FieldSet form(String id, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('form', id);
    node.attrs!.add(attr);
  }
  return this;
}