form method

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

The <form> element to associate the button with (its form owner). Read more...

Implementation

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