EditNumber constructor

EditNumber({
  1. TextEditingController? controller,
  2. num? initialValue,
  3. String? label,
  4. FocusNode? focusNode,
  5. required num minValue,
  6. required num maxValue,
  7. bool allowEmpty = false,
  8. bool signed = true,
  9. bool decimal = true,
  10. Color? cursorColor = Colors.deepOrange,
  11. Widget? prefixIcon,
  12. String? helperText,
  13. String? errorText,
  14. void onSubmitted(
    1. num? value
    )?,
  15. bool clear = true,
  16. Widget? suffixIcon,
  17. TextInputType? keyboardType,
  18. 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();