InputType enum
The type for an <input> element.
Values
-
A push button with no default behavior displaying the value of the value attribute, empty by default.
const InputType('button') - checkbox → const InputType
-
A check box allowing single values to be selected/deselected.
const InputType('checkbox') - color → const InputType
-
A control for specifying a color; opening a color picker when active in supporting browsers.
const InputType('color') - date → const InputType
-
A control for entering a date (year, month, and day, with no time). Opens a date picker or numeric wheels for year, month, day when active in supporting browsers.
const InputType('date') - dateTimeLocal → const InputType
-
A control for entering a date and time, with no time zone. Opens a date picker or numeric wheels for date- and time-components when active in supporting browsers.
const InputType('datetime-local') - email → const InputType
-
A field for editing an email address. Looks like a text input, but has validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards.
const InputType('email') - file → const InputType
-
A control that lets the user select a file. Use the accept attribute to define the types of files that the control can select.
const InputType('file') -
A control that is not displayed but whose value is submitted to the server.
const InputType('hidden') - image → const InputType
-
A graphical submit button. Displays an image defined by the src attribute. The alt attribute displays if the image src is missing.
const InputType('image') - month → const InputType
-
A control for entering a month and year, with no time zone.
const InputType('month') - number → const InputType
-
A control for entering a number. Displays a spinner and adds default validation when supported. Displays a numeric keypad in some devices with dynamic keypads.
const InputType('number') - password → const InputType
-
A single-line text field whose value is obscured. Will alert user if site is not secure.
const InputType('password') - radio → const InputType
-
A radio button, allowing a single value to be selected out of multiple choices with the same name value.
const InputType('radio') - range → const InputType
-
A control for entering a number whose exact value is not important. Displays as a range widget defaulting to the middle value. Used in conjunction min and max to define the range of acceptable values.
const InputType('range') - reset → const InputType
-
A button that resets the contents of the form to default values. Not recommended.
const InputType('reset') - search → const InputType
-
A single-line text field for entering search strings. Line-breaks are automatically removed from the input value. May include a delete icon in supporting browsers that can be used to clear the field. Displays a search icon instead of enter key on some devices with dynamic keypads.
const InputType('search') - submit → const InputType
-
A button that submits the form.
const InputType('submit') - tel → const InputType
-
A control for entering a telephone number. Displays a telephone keypad in some devices with dynamic keypads.
const InputType('tel') - text → const InputType
-
The default value. A single-line text field. Line-breaks are automatically removed from the input value.
const InputType('text') - time → const InputType
-
A control for entering a time value with no time zone.
const InputType('time') - url → const InputType
-
A field for entering a URL. Looks like a text input, but has validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards.
const InputType('url') - week → const InputType
-
A control for entering a date consisting of a week-year number and a week number with no time zone.
const InputType('week')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited