DatePicker constructor
DatePicker({
- Key? key,
- required MyDatePickerFieldTypes type,
- required TextEditingController controller,
- required DateTime initialDate,
- required BuildContext context,
- required String label,
- TextAlign? align,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - Function? extraMethod,
- DateTime? firstDate,
- double? height,
- bool? isMandatory,
- 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);