capture method

Input capture(
  1. String media, {
  2. bool? removeIf,
})

Media capture input method in file upload controls. Read more...

Implementation

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