multiline property

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

Indicates whether a text box accepts multiple lines of input or only a single line.

Note: In most user agent implementations, the default behavior of the ENTER or RETURN key is different between the single-line and multi-line text fields in HTML. When user has focus in a single-line <input type='text'> element, the keystroke usually submits the form. When user has focus in a multi-line <textarea> element, the keystroke inserts a line break. The WAI-ARIA textbox role differentiates these types of boxes with the aria-multiline attribute, so authors are advised to be aware of this distinction when designing the field.

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

Implementation

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

Indicates whether a text box accepts multiple lines of input or only a single line.

Note: In most user agent implementations, the default behavior of the ENTER or RETURN key is different between the single-line and multi-line text fields in HTML. When user has focus in a single-line <input type='text'> element, the keystroke usually submits the form. When user has focus in a multi-line <textarea> element, the keystroke inserts a line break. The WAI-ARIA textbox role differentiates these types of boxes with the aria-multiline attribute, so authors are advised to be aware of this distinction when designing the field.

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

Implementation

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