readonly method

Input readonly([
  1. bool r = true
])

Implementation

Input readonly([bool r = true]) {
  if (r) attr('readonly', BooleanAttribute(true));
  return this;
}