required method

Select required([
  1. bool r = true
])

Implementation

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