accept method
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;
}