textarea class final

The <textarea> HTML element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.

Inheritance

Constructors

textarea(List<Component> children, {AutoComplete? autoComplete, bool autofocus = false, int? cols, bool disabled = false, int? minLength, String? name, String? placeholder, bool readonly = false, bool required = false, int? rows, SpellCheck? spellCheck, TextWrap? wrap, ValueChanged<String>? onInput, ValueChanged<String>? onChange, String? id, String? classes, Styles? styles, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key})
The <textarea> HTML element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.
const

Properties

attributes Map<String, String>?
Additional attributes to apply to the HTML element.
final
autoComplete AutoComplete?
Indicates whether the value of the control can be automatically completed by the browser.
final
autofocus bool
This attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified.
final
children List<Component>
The children of this component.
final
classes String?
The CSS classes to apply to the HTML element, separated by whitespace.
final
cols int?
The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is 20.
final
disabled bool
Indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example <fieldset>; if there is no containing element when the disabled attribute is set, the control is enabled.
final
events Map<String, EventCallback>?
Event listeners to attach to the HTML element.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
The id of the HTML element. Must be unique within the document.
final
key Key?
Controls how one component replaces another component in the tree.
finalinherited
minLength int?
The minimum number of characters (UTF-16 code units) required that the user should enter.
final
name String?
The name of the control
final
onChange ValueChanged<String>?
Callback for the 'change' event.
final
onInput ValueChanged<String>?
Callback for the 'input' event.
final
placeholder String?
A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint.
final
readonly bool
Indicates that the user cannot modify the value of the control. Unlike the disabled attribute, the readonly attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form.
final
required bool
This attribute specifies that the user must fill in a value before submitting a form.
final
rows int?
The number of visible text lines for the control. If it is specified, it must be a positive integer. If it is not specified, the default value is 2.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spellCheck SpellCheck?
Specifies whether the <textarea> is subject to spell checking by the underlying browser/OS.
final
styles Styles?
The inline styles to apply to the HTML element.
final
wrap TextWrap?
Indicates how the control wraps text. If this attribute is not specified, soft is its default value.
final

Methods

build(BuildContext context) Component
Describes the part of the user interface represented by this component.
override
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited