accept method

Input accept(
  1. String type, {
  2. bool? removeIf,
})

Hint for expected file type in file upload controls. Read more...

Implementation

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