readonly property

  1. @override
  2. @Accessor(key: 'aria-readonly')
bool? readonly

Indicates that the element is not editable, but is otherwise operable. See related aria-disabled.

This means the user can read but not set the value of the widget. Readonly elements are relevant to the user, and application authors SHOULD NOT restrict navigation to the element or its focusable descendants. Other actions such as copying the value of the element are also supported. This is in contrast to disabled elements, to which applications might not allow user navigation to descendants.

Examples include:

A form element which represents a constant.Row or column headers in a spreadsheet grid.The result of a calculation such as a shopping cart total.

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

Implementation

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

Indicates that the element is not editable, but is otherwise operable. See related aria-disabled.

This means the user can read but not set the value of the widget. Readonly elements are relevant to the user, and application authors SHOULD NOT restrict navigation to the element or its focusable descendants. Other actions such as copying the value of the element are also supported. This is in contrast to disabled elements, to which applications might not allow user navigation to descendants.

Examples include:

A form element which represents a constant.Row or column headers in a spreadsheet grid.The result of a calculation such as a shopping cart total.

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

Implementation

@override
@Accessor(key: 'aria-readonly')
set readonly(bool? value) => props[_$key__readonly___$AriaPropsMixin] = value;