checked property

  1. @override
  2. @Accessor(key: 'aria-checked')
dynamic checked

Indicates the current 'checked' state of checkboxes, radio buttons, and other widgets. See related aria-pressed and aria-selected.

The aria-checked attribute indicates whether the element is checked (true), unchecked (false), or represents a group of other elements that have a mixture of checked and unchecked values (mixed). Most inputs only support values of true and false, but the mixed value is supported by certain tri-state inputs such as a checkbox or menuitemcheckbox.

The mixed value is not supported on radio or menuitemradio or any element that inherits from these in the taxonomy, and user agents MUST treat a mixed value as equivalent to false for those roles.

Examples using the mixed value of tri-state inputs are covered in WAI-ARIA Authoring Practices ARIA-PRACTICES

See: developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-checked

Implementation

@override
@Accessor(key: 'aria-checked')
dynamic get checked =>
    (props[_$key__checked___$AriaPropsMixin] ?? null) as dynamic;
  1. @override
  2. @Accessor(key: 'aria-checked')
void checked=(dynamic value)

Indicates the current 'checked' state of checkboxes, radio buttons, and other widgets. See related aria-pressed and aria-selected.

The aria-checked attribute indicates whether the element is checked (true), unchecked (false), or represents a group of other elements that have a mixture of checked and unchecked values (mixed). Most inputs only support values of true and false, but the mixed value is supported by certain tri-state inputs such as a checkbox or menuitemcheckbox.

The mixed value is not supported on radio or menuitemradio or any element that inherits from these in the taxonomy, and user agents MUST treat a mixed value as equivalent to false for those roles.

Examples using the mixed value of tri-state inputs are covered in WAI-ARIA Authoring Practices ARIA-PRACTICES

See: developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-checked

Implementation

@override
@Accessor(key: 'aria-checked')
set checked(dynamic value) => props[_$key__checked___$AriaPropsMixin] = value;