DatePicker constructor
DatePicker({
- int? maxlength,
- Widget? dateIcon,
- double? width,
- String? labelText,
- bool? enabled = true,
- String? initialValue,
- String? hintText,
- String? validator()?,
- dynamic onChanged(
- DateTime? value
- required TextEditingController? dateController,
- String? format = 'yyyy-MM-dd',
- DateTime? startDate,
- DateTime? lastDate,
- required DateTime? selectedValue,
Implementation
DatePicker(
{this.maxlength,
this.dateIcon,
this.width,
this.labelText,
this.enabled = true,
this.initialValue,
this.hintText,
this.validator,
this.onChanged,
required this.dateController,
this.format = 'yyyy-MM-dd',
this.startDate,
this.lastDate,
required this.selectedValue}) {
if (this.selectedValue == null) {
this.selectedValue = DateTime.now();
}
}