DatePicker constructor

DatePicker({
  1. Key? key,
  2. required MyDatePickerFieldTypes type,
  3. required TextEditingController controller,
  4. required DateTime initialDate,
  5. required BuildContext context,
  6. required String label,
  7. TextAlign? align,
  8. ValueChanged<String>? onChanged,
  9. ValueChanged<String>? onSubmitted,
  10. Function? extraMethod,
  11. DateTime? firstDate,
  12. double? height,
  13. bool? isMandatory,
  14. DateTime? lastDate,
})

Implementation

DatePicker({Key? key,required this.type,
  required this.controller,
  required this.initialDate,
  required this.context,
  required this.label,
  this.align,this.onChanged,this.onSubmitted,this.extraMethod,this.firstDate,this.height,this.isMandatory,this.lastDate}) : super(key: key);