formMethod method

Button formMethod(
  1. String method, {
  2. bool? removeIf,
})

This attribute specifies the HTTP method used to submit the form. Read more...

Implementation

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