placeholder method

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

A hint to the user of what can be entered in the control. Read more...

Implementation

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