PhoneTextInputFormatter class
手机号码输入格式化
- Inheritance
-
- Object
- TextInputFormatter
- PhoneTextInputFormatter
Constructors
-
PhoneTextInputFormatter({List<
String> ? masks, int? maxLength})
Properties
Methods
-
formatEditUpdate(
TextEditingValue oldValue, TextEditingValue newValue) → TextEditingValue -
Called when text is being typed or cut/copy/pasted in the EditableText.
override
-
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
Static Methods
-
getOnlyNumbers(
String value) → String - 获取仅数字的字符串