PhoneNumberInput constructor

const PhoneNumberInput({
  1. Key? key,
  2. String? labelText,
  3. String? initialValue,
  4. String? initialCountryCode,
  5. bool isRequired = false,
  6. bool enabled = true,
  7. IconData? icon = Icons.phone,
  8. Color? iconColor,
  9. String? iconTooltip,
  10. VoidCallback? onIconTap,
  11. FocusNode? focusNode,
  12. TextEditingController? controller,
  13. ValueChanged<PhoneNumber>? onChanged,
  14. EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
})

Implementation

const PhoneNumberInput({
  super.key,
  this.labelText,
  this.initialValue,
  this.initialCountryCode,
  this.isRequired = false,
  this.enabled = true,
  this.icon = Icons.phone,
  this.iconColor,
  this.iconTooltip,
  this.onIconTap,
  this.focusNode,
  this.controller,
  this.onChanged,
  this.padding = const EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
});