UTextFieldDatePicker constructor

const UTextFieldDatePicker({
  1. required dynamic onChange(
    1. DateTime,
    2. Jalali
    ),
  2. Key? key,
  3. String? text,
  4. double? fontSize,
  5. String? hintText,
  6. String? labelText,
  7. Widget? prefix,
  8. Widget? suffix,
  9. double? textHeight,
  10. TextEditingController? controller,
  11. DateTime? initialDate,
  12. int? startYear,
  13. int? endYear,
  14. String? validator(
    1. String?
    )?,
  15. bool readOnly = false,
  16. bool date = true,
  17. bool time = false,
  18. TextAlign textAlign = TextAlign.start,
  19. bool jalali = false,
})

Implementation

const UTextFieldDatePicker({
  required this.onChange,
  super.key,
  this.text,
  this.fontSize,
  this.hintText,
  this.labelText,
  this.prefix,
  this.suffix,
  this.textHeight,
  this.controller,
  this.initialDate,
  this.startYear,
  this.endYear,
  this.validator,
  this.readOnly = false,
  this.date = true,
  this.time = false,
  this.textAlign = TextAlign.start,
  this.jalali = false,
});