EditNumber constructor
EditNumber({
- TextEditingController? controller,
- num? initialValue,
- String? label,
- FocusNode? focusNode,
- required num minValue,
- required num maxValue,
- bool allowEmpty = false,
- bool signed = true,
- bool decimal = true,
- Color? cursorColor = Colors.deepOrange,
- Widget? prefixIcon,
- String? helperText,
- String? errorText,
- void onSubmitted(
- num? value
- bool clear = true,
- Widget? suffixIcon,
- TextInputType? keyboardType,
- TextInputAction? textInputAction = TextInputAction.next,
Implementation
EditNumber({
TextEditingController? controller,
this.initialValue,
this.label,
FocusNode? focusNode,
required this.minValue,
required this.maxValue,
this.allowEmpty = false,
this.signed = true,
this.decimal = true,
this.cursorColor = Colors.deepOrange,
this.prefixIcon,
this.helperText,
this.errorText,
this.onSubmitted,
this.clear = true,
this.suffixIcon,
TextInputType? keyboardType,
this.textInputAction = TextInputAction.next,
}) : controller = controller ?? TextEditingController(),
keyboardType = keyboardType ?? TextInputType.numberWithOptions(signed: signed, decimal: decimal),
focusNode = focusNode ?? FocusNode(),
super();