readOnly method

TextArea readOnly(
  1. bool boolean
)

This attribute indicates that the user cannot modify the value of the control. Read more...

Implementation

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