PrefIntegerText constructor
const
PrefIntegerText({
- String? label,
- required String pref,
- Key? key,
- ValueChanged<
String> ? onChange, - FormFieldValidator<
String> ? validator, - EdgeInsets? padding,
- bool obscureText = false,
- bool autofocus = false,
- String hintText = '',
- int maxLines = 1,
- TextStyle? style,
- TextStyle? labelStyle,
- InputDecoration? decoration,
- bool? disabled,
Creates a preference text with only integer values allowed.
Implementation
const PrefIntegerText({
this.label,
required this.pref,
Key? key,
this.onChange,
this.validator,
this.padding,
this.obscureText = false,
this.autofocus = false,
this.hintText = '',
this.maxLines = 1,
this.style,
this.labelStyle,
this.decoration,
this.disabled,
}) : super(key: key);