TDateTimeTextField constructor

const TDateTimeTextField({
  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. TTextFieldTheme? theme,
  12. VoidCallback? onTap,
  13. FocusNode? focusNode,
  14. TextEditingController? textController,
  15. String? value,
  16. ValueNotifier<String?>? valueNotifier,
  17. ValueChanged<String?>? onValueChanged,
  18. List<String? Function(String?)>? rules,
  19. Duration? validationDebounce,
  20. 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.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,
});