DateField constructor
const
DateField({
- Key? key,
- String label = 'Date',
- String? hint,
- DateTime? initialDate,
- DateTime? firstDate,
- DateTime? lastDate,
- String? validator()?,
- ValueChanged<
DateTime> ? onChanged, - bool enabled = true,
- IconData? icon,
- DateMode mode = DateMode.date,
- DateFieldPickerStyle pickerStyle = DateFieldPickerStyle.nash,
- String? locale,
Implementation
const DateField({
super.key,
this.label = 'Date',
this.hint,
this.initialDate,
this.firstDate,
this.lastDate,
this.validator,
this.onChanged,
this.enabled = true,
this.icon,
this.mode = DateMode.date,
this.pickerStyle = DateFieldPickerStyle.nash,
this.locale,
});