EditText.phone constructor
EditText.phone({})
Implementation
EditText.phone({
Key? key,
required TextEditingController controller,
String? hint = "Enter your phone",
String? label = "Phone",
TextStyle? textStyle,
TextStyle? hintStyle,
TextStyle? labelStyle,
bool isOptional = false,
Function(String)? onChange,
int maxLength = 10,
}) : this(
key: key,
controller: controller,
hint: hint,
label: label,
inputType: TextInputType.phone,
inputFormat: [FilteringTextInputFormatter.digitsOnly],
textStyle: textStyle,
hintStyle: hintStyle,
labelStyle: labelStyle,
maxLength: maxLength,
isOptional: isOptional,
onChange: onChange,
);