selected method

Option selected([
  1. bool isSelected = true
])

Implementation

Option selected([bool isSelected = true]) {
  if (isSelected) {
    attr('selected', BooleanAttribute(true));
  }
  return this;
}