TDateTimeTextField<T extends String?> constructor

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

Creates a formatted date/time text field.

Implementation

const TDateTimeTextField({
  super.key,
  this.label,
  this.tag,
  this.helperText,
  this.placeholder,
  this.info,
  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,
  this.formatType = TDateTimeFormatType.date,
});