PhoneInputBehavior enum
Behavior of PhoneNumberEditingController.
Constructors
- PhoneInputBehavior()
-
const
Values
- strict → const PhoneInputBehavior
-
Accepts only phone numbers, with formatting always on.
Considers all inputs are phone numbers, and ignores the input if formatting fails. Always tries to format.
- cancellable → const PhoneInputBehavior
-
Accepts only phone numbers, but may cancel formatting.
Considers all inputs are phone numbers, and ignores the input if formatting fails. Stops formatting if a separator is removed by the user. Will continue formatting if the input is cleared.
- lenient → const PhoneInputBehavior
-
Accepts any input.
Stops formatting if a separator is removed by the user, if the formatting fails, or if a non-dialable is inserted. Will continue formatting if the input is cleared.
Properties
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
Constants
-
values
→ const List<
PhoneInputBehavior> - A constant List of the values in this enum, in order of their declaration.