encType method

Form encType(
  1. String value, {
  2. bool? removeIf,
})

If the value of the method attribute is post, enctype is the MIME type of the form submission. Read more...

Implementation

Form encType(String value, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('enctype', value);
    node.attrs!.add(attr);
  }
  return this;
}