CustomDateField constructor

const CustomDateField({
  1. Key? key,
  2. String? label,
  3. TextStyle? labelStyle,
  4. String? hint,
  5. DateTime? selectedDate,
  6. String? errorMsg,
  7. Color? errorColor,
  8. void onChanged(
    1. DateTime selectedDate
    )?,
  9. Color? borderColor,
  10. Color? focusedBorderColor,
  11. Color? textColor,
  12. Color? hintColor,
  13. Color? iconColor,
  14. bool isDisabled = false,
  15. bool isOptionalMark = false,
  16. Color? disabledBorderColor,
  17. Color? disabledTextColor,
  18. Color? disabledBackgroundColor,
  19. Widget? prefixIcon,
  20. DateTime? firstDate,
  21. DateTime? lastDate,
  22. DateFormat? dateFormat,
  23. DatePickerMode initialDatePickerMode = DatePickerMode.day,
})

Implementation

const CustomDateField({
  Key? key,
  this.label,
  this.labelStyle,
  this.hint,
  this.selectedDate,
  this.errorMsg,
  this.errorColor,
  this.onChanged,
  this.borderColor,
  this.focusedBorderColor,
  this.textColor,
  this.hintColor,
  this.iconColor,
  this.isDisabled = false,
  this.isOptionalMark = false,
  this.disabledBorderColor,
  this.disabledTextColor,
  this.disabledBackgroundColor,
  this.prefixIcon,
  this.firstDate,
  this.lastDate,
  this.dateFormat,
  this.initialDatePickerMode = DatePickerMode.day,
}) : super(key: key);