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.
- Annotations
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.
no setteroverride
- index → int
-
Enum value index, corresponds to one of the values.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signed → bool?
-
The number is signed, allowing a positive or negative sign at the start.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns a representation of this object as a JSON object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- datetime → const TextInputType
- Optimize for date and time information.
- emailAddress → const TextInputType
- Optimize for email addresses.
- multiline → const TextInputType
- Optimize for multiline textual information.
- name → const TextInputType
- Optimized for a person's name.
- none → const TextInputType
- Prevent the OS from showing the on-screen virtual keyboard.
- number → const TextInputType
- Optimize for unsigned numerical information without a decimal point.
- phone → const TextInputType
- Optimize for telephone numbers.
- streetAddress → const TextInputType
- Optimized for postal mailing addresses.
- text → const TextInputType
- Optimize for textual information.
- url → const TextInputType
- Optimize for URLs.
-
values
→ const List<
TextInputType> - All possible enum values.
- visiblePassword → const TextInputType
- Optimize for passwords that are visible to the user.