checked method

Input checked(
  1. bool boolean
)

Whether the command or control is checked. Read more...

Implementation

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