CHECKBOXElement constructor

CHECKBOXElement({
  1. Map<String, dynamic>? attributes,
  2. Object? id,
  3. Object? name,
  4. Object? type,
  5. Object? placeholder,
  6. Object? classes,
  7. Object? style,
  8. Object? value,
  9. bool? checked,
  10. bool? hidden,
  11. bool disabled = false,
  12. bool commented = false,
})

Implementation

CHECKBOXElement(
    {Map<String, dynamic>? attributes,
    super.id,
    Object? name,
    Object? type,
    Object? placeholder,
    super.classes,
    super.style,
    Object? value,
    bool? checked,
    super.hidden,
    bool disabled = false,
    super.commented})
    : super(attributes: {
        if (name != null) 'name': name,
        'type': 'checkbox',
        if (placeholder != null) 'placeholder': placeholder,
        if (value != null) 'value': value,
        if (checked != null) 'checked': checked,
        if (disabled) 'disabled': disabled,
        ...?attributes
      });