TextInputType class

The type of information for which to optimize the text input control.

On Android, behavior may vary across device and keyboard provider.

This class stays as close to Enum interface as possible, and allows for additional flags for some input types. For example, numeric input can specify whether it supports decimal numbers and/or signed numbers.


TextInputType.numberWithOptions({bool signed: false, bool decimal: false })
Optimize for textual information. [...]


decimal bool
The number is decimal, allowing a decimal point to provide fractional. [...]
hashCode int
The hash code for this object. [...]
index int
Enum value index, corresponds to one of the values.
signed bool
The number is signed, allowing a positive or negative sign at the start. [...]
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


toJSON() Map<String, dynamic>
Returns a representation of this object as a JSON object.
toString() String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]


operator ==(dynamic other) bool
The equality operator. [...]


datetime → const TextInputType
Optimize for date and time information. [...]
const TextInputType._(4)
emailAddress → const TextInputType
Optimize for email addresses. [...]
const TextInputType._(5)
multiline → const TextInputType
Optimize for multi-line textual information. [...]
const TextInputType._(1)
number → const TextInputType
Optimize for numerical information. [...]
const TextInputType.numberWithOptions()
phone → const TextInputType
Optimize for telephone numbers. [...]
const TextInputType._(3)
text → const TextInputType
Optimize for textual information. [...]
const TextInputType._(0)
url → const TextInputType
Optimize for URLs. [...]
const TextInputType._(6)
values → const List<TextInputType>
All possible enum values.
const <TextInputType> [text, multiline, number, phone, datetime, emailAddress, url]