PrefText constructor

const PrefText({
  1. String? label,
  2. required String pref,
  3. Key? key,
  4. ValueChanged<String>? onChange,
  5. FormFieldValidator<String>? validator,
  6. EdgeInsets? padding,
  7. bool obscureText = false,
  8. bool autofocus = false,
  9. List<TextInputFormatter>? inputFormatters,
  10. String hintText = '',
  11. int maxLines = 1,
  12. TextStyle? style,
  13. TextInputType? keyboardType,
  14. TextStyle? labelStyle,
  15. InputDecoration? decoration,
  16. bool? disabled,
})

Creates a preference text.

Implementation

const PrefText({
  this.label,
  required this.pref,
  super.key,
  this.onChange,
  this.validator,
  this.padding,
  this.obscureText = false,
  this.autofocus = false,
  this.inputFormatters,
  this.hintText = '',
  this.maxLines = 1,
  this.style,
  this.keyboardType,
  this.labelStyle,
  this.decoration,
  this.disabled,
});