CustomPhoneTextField constructor

const CustomPhoneTextField({
  1. Key? key,
  2. String? label,
  3. TextStyle? labelStyle,
  4. PhoneController? controller,
  5. String? errorMsg,
  6. Color? errorColor,
  7. void onChanged(
    1. PhoneNumber?
    )?,
  8. Color? borderColor,
  9. Color? focusedBorderColor,
  10. Color? textColor,
  11. Color? hintColor,
  12. Color? iconColor,
  13. bool isDisabled = false,
  14. bool isOptionalMark = false,
  15. bool isCountrySelectionEnabled = true,
  16. Color? disabledBorderColor,
  17. Color? disabledTextColor,
  18. Color? disabledBackgroundColor,
  19. bool shouldFormat = true,
  20. bool showFlagInInput = true,
  21. CountrySelectorNavigator selectorNavigator = const CountrySelectorNavigator.bottomSheet(),
})

Implementation

const CustomPhoneTextField({
  Key? key,
  this.label,
  this.labelStyle,
  this.controller,
  this.errorMsg,
  this.errorColor,
  this.onChanged,
  this.borderColor,
  this.focusedBorderColor,
  this.textColor,
  this.hintColor,
  this.iconColor,
  this.isDisabled = false,
  this.isOptionalMark = false,
  this.isCountrySelectionEnabled = true,
  this.disabledBorderColor,
  this.disabledTextColor,
  this.disabledBackgroundColor,
  this.shouldFormat = true,
  this.showFlagInInput = true,
  this.selectorNavigator = const CountrySelectorNavigator.bottomSheet(),
}) : super(key: key);