placeholder method

Input placeholder(
  1. String text, {
  2. bool? removeIf,
})

Text that appears in the form control when it has no value set. Read more...

Implementation

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