expanded property

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

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

For example, this indicates whether a portion of a tree is expanded or collapsed. In other instances, this may be applied to page sections to mark expandable and collapsible regions that are flexible for managing content density. Simplifying the user interface by collapsing sections may improve usability for all, including those with cognitive or developmental disabilities.

If the element with the aria-expanded attribute controls the expansion of another grouping container that is not 'owned by' the element, the author SHOULD reference the container by using the aria-controls attribute.

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

Implementation

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

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

For example, this indicates whether a portion of a tree is expanded or collapsed. In other instances, this may be applied to page sections to mark expandable and collapsible regions that are flexible for managing content density. Simplifying the user interface by collapsing sections may improve usability for all, including those with cognitive or developmental disabilities.

If the element with the aria-expanded attribute controls the expansion of another grouping container that is not 'owned by' the element, the author SHOULD reference the container by using the aria-controls attribute.

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

Implementation

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