select class final
The <select> HTML element represents a control that provides a menu of options.
- Inheritance
-
- Object
- Component
- StatelessComponent
- select
Constructors
-
select(List<
Component> children, {String? name, String? value, bool multiple = false, bool required = false, bool disabled = false, bool autofocus = false, String? autocomplete, int? size, ValueChanged<List< ? onInput, ValueChanged<String> >List< ? onChange, String? id, String? classes, Styles? styles, Map<String> >String, String> ? attributes, Map<String, EventCallback> ? events, Key? key}) -
The <select> HTML element represents a control that provides a menu of options.
const
Properties
-
attributes
→ Map<
String, String> ? -
Additional attributes to apply to the HTML element.
final
- autocomplete → String?
-
A string providing a hint for a user agent's autocomplete feature.
final
- autofocus → bool
-
This attribute lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the autofocus attribute.
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
- 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 with the disabled attribute set, then 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
- multiple → bool
-
Indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When multiple is specified, most browsers will show a scrolling list box instead of a single line dropdown.
final
- name → String?
-
This attribute is used to specify the name of the control.
final
-
onChange
→ ValueChanged<
List< ?String> > -
Callback for the 'change' event.
final
-
onInput
→ ValueChanged<
List< ?String> > -
Callback for the 'input' event.
final
- required → bool
-
Indicating that an option with a non-empty string value must be selected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int?
-
If the control is presented as a scrolling list box (e.g. when multiple is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.
final
- styles → Styles?
-
The inline styles to apply to the HTML element.
final
- value → String?
-
The value of the control.
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