TDatePicker constructor

const TDatePicker({
  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 = true,
  11. bool clearable = false,
  12. TTextFieldTheme? theme,
  13. VoidCallback? onTap,
  14. FocusNode? focusNode,
  15. TextEditingController? textController,
  16. DateTime? value,
  17. ValueNotifier<DateTime?>? valueNotifier,
  18. ValueChanged<DateTime?>? onValueChanged,
  19. List<String? Function(DateTime?)>? rules,
  20. Duration? validationDebounce,
  21. VoidCallback? onShow,
  22. VoidCallback? onHide,
  23. DateTime? firstDate,
  24. DateTime? lastDate,
  25. DateFormat? format,
})

Creates a date picker input.

Implementation

const TDatePicker({
  super.key,
  this.label,
  this.tag,
  this.helperText,
  this.placeholder,
  this.info,
  this.isRequired = false,
  this.disabled = false,
  this.autoFocus = false,
  this.readOnly = true,
  this.clearable = false,
  this.theme,
  this.onTap,
  this.focusNode,
  this.textController,
  this.value,
  this.valueNotifier,
  this.onValueChanged,
  this.rules,
  this.validationDebounce,
  this.onShow,
  this.onHide,
  this.firstDate,
  this.lastDate,
  this.format,
});