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,
    Object? id,
    Object? name,
    Object? type,
    Object? placeholder,
    Object? classes,
    Object? style,
    Object? value,
    bool? checked,
    bool? hidden,
    bool disabled = false,
    bool commented = false})
    : super(
          id: id,
          classes: classes,
          style: style,
          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
          },
          hidden: hidden,
          commented: commented);