checked method

Input checked([
  1. bool c = true
])

Implementation

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