pressed property

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

Indicates the current 'pressed' state of toggle buttons. See related aria-checked and aria-selected.

Toggle buttons require a full press-and-release cycle to change their value. Activating it once changes the value to true, and activating it another time changes the value back to false. A value of mixed means that the values of more than one item controlled by the button do not all share the same value. Examples of mixed-state buttons are described in WAI-ARIA Authoring Practices ARIA-PRACTICES. If the attribute is not present, the button is not a toggle button.

The aria-pressed attribute is similar but not identical to the aria-checked attribute. Operating systems support pressed on buttons and checked on checkboxes.

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

Implementation

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

Indicates the current 'pressed' state of toggle buttons. See related aria-checked and aria-selected.

Toggle buttons require a full press-and-release cycle to change their value. Activating it once changes the value to true, and activating it another time changes the value back to false. A value of mixed means that the values of more than one item controlled by the button do not all share the same value. Examples of mixed-state buttons are described in WAI-ARIA Authoring Practices ARIA-PRACTICES. If the attribute is not present, the button is not a toggle button.

The aria-pressed attribute is similar but not identical to the aria-checked attribute. Operating systems support pressed on buttons and checked on checkboxes.

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

Implementation

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