DateField constructor

DateField({
  1. Key? key,
  2. DateTime? inputDate,
  3. int durationDays = 7,
  4. bool enabled = true,
  5. DateTime? lastDate,
  6. String dateFormat = "dd/MM/yyyy",
  7. dynamic onChanged(
    1. DateTime
    )?,
  8. double? fontSize,
  9. Color? fontColor,
  10. FontWeight? fontWeight,
  11. double? radius,
  12. EdgeInsets? padding,
  13. String? calendarAsset = Vector.CALENDARLIGHT,
  14. bool highlight = false,
  15. Color datePickerBgColor = Colors.white,
  16. 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();
}