readOnly method

Input readOnly(
  1. bool boolean
)

The value is not editable. Read more...

Implementation

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