UTextFieldDatePicker constructor

const UTextFieldDatePicker({
  1. required dynamic onChange(
    1. DateTime,
    2. UJalali
    ),
  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,
  20. UJalaliDatePickerType jalaliType = UJalaliDatePickerType.material,
  21. bool spinnerAsDialog = false,
  22. String? helpText,
  23. EdgeInsetsGeometry? margin,
  24. bool visible = true,
  25. double? opacity,
  26. BoxFit? fit,
  27. AlignmentGeometry fitAlignment = Alignment.center,
  28. double? scale,
  29. double? rotate,
  30. Offset? translate,
  31. bool center = false,
  32. bool safeArea = false,
  33. int? expanded,
  34. int? flexible,
  35. bool positioned = false,
  36. double? left,
  37. double? top,
  38. double? right,
  39. double? bottom,
  40. double? positionedWidth,
  41. double? positionedHeight,
})

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,
  this.jalaliType = UJalaliDatePickerType.material,
  this.spinnerAsDialog = false,
  this.helpText,
  this.margin,
  this.visible = true,
  this.opacity,
  this.fit,
  this.fitAlignment = Alignment.center,
  this.scale,
  this.rotate,
  this.translate,
  this.center = false,
  this.safeArea = false,
  this.expanded,
  this.flexible,
  this.positioned = false,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.positionedWidth,
  this.positionedHeight,
});