DateField constructor
DateField({
- Key? key,
- DateTime? inputDate,
- int durationDays = 7,
- bool enabled = true,
- DateTime? lastDate,
- String dateFormat = "dd/MM/yyyy",
- dynamic onChanged()?,
- double? fontSize,
- Color? fontColor,
- FontWeight? fontWeight,
- double? radius,
- EdgeInsets? padding,
- String? calendarAsset = Vector.CALENDARLIGHT,
- bool highlight = false,
- Color datePickerBgColor = Colors.white,
- Color? borderColor,
Implementation
DateField(
{Key? key,
this.inputDate,
this.durationDays = 7,
this.enabled = true,
this.lastDate,
this.dateFormat = "dd/MM/yyyy",
this.onChanged,
this.fontSize,
this.fontColor,
this.fontWeight,
this.radius,
this.padding,
this.calendarAsset = Vector.CALENDARLIGHT,
this.highlight = false,
this.datePickerBgColor = Colors.white,
this.borderColor})
: super(key: key) {
lastDate = lastDate.onlyDate(format: DF.DATE_FORMAT);
inputDate = inputDate.onlyDate(format: DF.DATE_FORMAT);
_checkNextDate();
_checkPreviousDate();
}