PrefIntegerText constructor

const PrefIntegerText({
  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. String hintText = '',
  10. int maxLines = 1,
  11. TextStyle? style,
  12. TextStyle? labelStyle,
  13. InputDecoration? decoration,
  14. 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);