PrefText constructor
const
PrefText({
- String? label,
- required String pref,
- Key? key,
- ValueChanged<
String> ? onChange, - FormFieldValidator<
String> ? validator, - EdgeInsets? padding,
- bool obscureText = false,
- bool autofocus = false,
- List<
TextInputFormatter> ? inputFormatters, - String hintText = '',
- int maxLines = 1,
- TextStyle? style,
- TextInputType? keyboardType,
- TextStyle? labelStyle,
- InputDecoration? decoration,
- 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,
});