date static method
TFormField<DateTime>
date(
- TFieldProp<
DateTime> prop, - String? label, {
- String? tag,
- String? placeholder,
- String? helperText,
- bool isRequired = false,
- bool disabled = false,
- bool autoFocus = false,
- bool readOnly = false,
- TTextFieldTheme? theme,
- FocusNode? focusNode,
- VoidCallback? onTap,
- TextEditingController? textController,
- List<
String? Function(DateTime?)> ? rules, - VoidCallback? onShow,
- VoidCallback? onHide,
- DateFormat? format,
- DateTime? firstDate,
- DateTime? lastDate,
Implementation
static TFormField<DateTime> date(
TFieldProp<DateTime> prop,
String? label, {
String? tag,
String? placeholder,
String? helperText,
bool isRequired = false,
bool disabled = false,
bool autoFocus = false,
bool readOnly = false,
TTextFieldTheme? theme,
FocusNode? focusNode,
VoidCallback? onTap,
TextEditingController? textController,
List<String? Function(DateTime?)>? rules,
VoidCallback? onShow,
VoidCallback? onHide,
DateFormat? format,
DateTime? firstDate,
DateTime? lastDate,
}) {
return TFormField<DateTime>(
prop: prop,
builder: (onValueChanged) => TDatePicker(
label: label,
tag: tag,
placeholder: placeholder,
helperText: helperText,
isRequired: isRequired,
disabled: disabled,
autoFocus: autoFocus,
readOnly: readOnly,
theme: theme,
focusNode: focusNode,
onTap: onTap,
textController: textController,
rules: rules,
onShow: onShow,
onHide: onHide,
format: format,
firstDate: firstDate,
lastDate: lastDate,
value: prop.value,
valueNotifier: prop.valueNotifier,
onValueChanged: onValueChanged,
),
);
}