StatePicker constructor

const StatePicker({
  1. Key? key,
  2. required String? countryCode,
  3. required ValueNotifier<String?> selectedState,
  4. String? prefixText,
  5. String? labelText,
  6. String? hintText,
  7. bool enabled = true,
  8. String? validator(
    1. String?
    )?,
  9. bool isFilled = false,
  10. Color? focusedBorderColor,
  11. OutlineInputBorder? inputBorder,
  12. double? borderRadius,
  13. EdgeInsets? contentPadding,
  14. Widget? suffixIcon,
  15. Widget? prefixIcon,
  16. OutlineInputBorder? errorBorder,
  17. TextStyle? errorStyle,
  18. TextStyle? hintStyle,
  19. TextStyle? labelStyle,
})

Implementation

const StatePicker({
  super.key,
  required this.countryCode,
  required this.selectedState,
  this.prefixText,
  this.labelText,
  this.hintText,
  this.enabled = true,
  this.validator,
  this.isFilled = false,
  this.focusedBorderColor,
  this.inputBorder,
  this.borderRadius,
  this.contentPadding,
  this.suffixIcon,
  this.prefixIcon,
  this.errorBorder,
  this.errorStyle,
  this.hintStyle,
  this.labelStyle,
});