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.

Constructors

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

Properties

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

Methods

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

Operators

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

Constants

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 unsigned numerical information without a decimal point. [...]
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]