required method

TextArea required(
  1. bool boolean
)

This attribute specifies that the user must fill in a value before submitting a form. Read more...

Implementation

TextArea required(bool boolean) {
  if (boolean && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('required', '');
    node.attrs!.add(attr);
  }
  return this;
}