Field.date constructor
Field.date(
- String key, {
- String? label,
- dynamic value,
- FormValidator? validator,
- bool autofocus = false,
- String? dummyData,
- Widget? header,
- TextStyle? titleStyle,
- bool? readOnly,
- FieldStyleDateTimePicker? style,
- dynamic onChanged(
- dynamic value
Field.date is a constructor that helps in managing date fields
Implementation
Field.date(
this.key, {
this.label,
dynamic value,
this.validator,
this.autofocus = false,
this.dummyData,
this.header,
this.footer,
this.titleStyle,
this.hidden = false,
this.readOnly,
FieldStyleDateTimePicker? style,
Function(dynamic value)? onChanged,
}) : _value = value,
this.style =
style ??
FieldStyleDateTimePicker(mode: DateTimeFieldPickerMode.date) {
this.style = (this.style as FieldStyleDateTimePicker).copyWith(
mode: DateTimeFieldPickerMode.date,
);
setOnChanged(onChanged);
widget = NyFormDateTimePicker.fromField(this);
}