TNumberField<T extends num> constructor

const TNumberField<T extends num>({
  1. Key? key,
  2. String? label,
  3. String? tag,
  4. String? helperText,
  5. String? placeholder,
  6. bool isRequired = false,
  7. bool disabled = false,
  8. bool autoFocus = false,
  9. bool readOnly = false,
  10. bool clearable = false,
  11. TNumberFieldTheme? theme,
  12. VoidCallback? onTap,
  13. FocusNode? focusNode,
  14. TextEditingController? textController,
  15. T? value,
  16. ValueNotifier<T?>? valueNotifier,
  17. ValueChanged<T?>? onValueChanged,
  18. List<String? Function(T?)>? rules,
  19. Duration? validationDebounce,
})

Creates a numeric input field.

Implementation

const TNumberField({
  super.key,
  this.label,
  this.tag,
  this.helperText,
  this.placeholder,
  this.isRequired = false,
  this.disabled = false,
  this.autoFocus = false,
  this.readOnly = false,
  this.clearable = false,
  this.theme,
  this.onTap,
  this.focusNode,
  this.textController,
  this.value,
  this.valueNotifier,
  this.onValueChanged,
  this.rules,
  this.validationDebounce,
});