PhoneField constructor

PhoneField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String hint,
  4. Icon? prefixIcon = defaultIcon,
  5. String? phoneUser,
  6. bool usePhoneUser = false,
  7. bool isRequired = true,
  8. bool readOnly = false,
  9. bool? enable,
  10. double borderRadius = 5,
  11. Color borderColor = const Color.fromRGBO(220, 220, 220, 1),
  12. Color borderFocusedColor = const Color.fromRGBO(220, 220, 220, 1),
  13. TextInputType inputType = TextInputType.text,
  14. String? validator(
    1. String?
    )?,
  15. String? onChanged(
    1. String?
    )?,
})

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
});