PhoneField constructor
PhoneField({
- Key? key,
- required TextEditingController controller,
- required String hint,
- Icon? prefixIcon = defaultIcon,
- String? phoneUser,
- bool usePhoneUser = false,
- bool isRequired = true,
- bool readOnly = false,
- bool? enable,
- double borderRadius = 5,
- Color borderColor = const Color.fromRGBO(220, 220, 220, 1),
- Color borderFocusedColor = const Color.fromRGBO(220, 220, 220, 1),
- TextInputType inputType = TextInputType.text,
- String? validator()?,
- String? onChanged()?,
Implementation
PhoneField({
super.key,
required this.controller,
required this.hint,
this.prefixIcon = defaultIcon,
this.phoneUser,
this.usePhoneUser = false,
this.isRequired = true,
this.readOnly = false,
this.enable,
this.borderRadius = 5,
this.borderColor = const Color.fromRGBO(220, 220, 220, 1),
this.borderFocusedColor = const Color.fromRGBO(220, 220, 220, 1),
this.inputType = TextInputType.text,
this.validator,
this.onChanged
});