DateField constructor

const DateField({
  1. Key? key,
  2. String label = 'Date',
  3. String? hint,
  4. DateTime? initialDate,
  5. DateTime? firstDate,
  6. DateTime? lastDate,
  7. String? validator(
    1. DateTime?
    )?,
  8. ValueChanged<DateTime>? onChanged,
  9. bool enabled = true,
  10. IconData? icon,
  11. DateMode mode = DateMode.date,
  12. DateFieldPickerStyle pickerStyle = DateFieldPickerStyle.nash,
  13. 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,
});