FastNumberField constructor
const
FastNumberField({
- Key? key,
- required String labelText,
- int maxLength = NumberInputFormatter.safeIntegerMaxLength,
- Duration debounceTimeDuration = kFastDebounceTimeDuration,
- int maxValue = NumberInputFormatter.safeInteger,
- bool transformInvalidNumber = true,
- bool showHelperBoundaries = true,
- TextAlign textAlign = TextAlign.start,
- bool shouldDebounceTime = false,
- bool allowAutocorrect = false,
- bool acceptDecimal = true,
- bool isReadOnly = false,
- bool isEnabled = true,
- String? valueText,
- TextEditingController? textEditingController,
- BoxConstraints? suffixIconConstraints,
- VoidCallback? onEditingCompleted,
- String? placeholderText,
- ValueChanged<
String> ? onValueChanged, - String? helperText,
- Widget? suffixIcon,
- String? locale,
Implementation
const FastNumberField({
super.key,
required this.labelText,
this.maxLength = NumberInputFormatter.safeIntegerMaxLength,
this.debounceTimeDuration = kFastDebounceTimeDuration,
this.maxValue = NumberInputFormatter.safeInteger,
this.transformInvalidNumber = true,
this.showHelperBoundaries = true,
this.textAlign = TextAlign.start,
this.shouldDebounceTime = false,
this.allowAutocorrect = false,
this.acceptDecimal = true,
this.isReadOnly = false,
this.isEnabled = true,
String? valueText,
this.textEditingController,
this.suffixIconConstraints,
this.onEditingCompleted,
this.placeholderText,
this.onValueChanged,
this.captionText,
this.helperText,
this.suffixIcon,
this.locale,
}) : valueText = valueText ?? '';