date static method
TFormField<DateTime>
date(
- TFieldProp<DateTime> prop,
- String? label, {
- String? tag,
- String? placeholder,
- String? helperText,
- bool isRequired = false,
- bool disabled = false,
- List<String? Function(DateTime?)>? rules,
- DateTime? firstDate,
- DateTime? lastDate,
- DateFormat? format,
})
Implementation
static TFormField<DateTime> date(
TFieldProp<DateTime> prop,
String? label, {
String? tag,
String? placeholder,
String? helperText,
bool isRequired = false,
bool disabled = false,
List<String? Function(DateTime?)>? rules,
DateTime? firstDate,
DateTime? lastDate,
DateFormat? format,
}) {
return TFormField<DateTime>(
prop: prop,
builder: (onValueChanged) => TDatePicker(
label: label,
tag: tag,
placeholder: placeholder,
helperText: helperText,
isRequired: isRequired,
disabled: disabled,
rules: rules,
value: prop.value,
valueNotifier: prop.valueNotifier,
onValueChanged: onValueChanged,
firstDate: firstDate,
lastDate: lastDate,
format: format,
),
);
}