DatePickerRF constructor

DatePickerRF({
  1. Object? model,
  2. String? field,
  3. DateTime? initialDate,
  4. bool showInitialDate = false,
  5. DateTime? maxDate,
  6. DateTime? minDate,
  7. BoxDecoration? decoration,
  8. Color? backgroundColor,
  9. double widgetHeight = 50,
  10. bool enabled = true,
  11. Color? borderColor,
  12. double? borderWidth,
  13. Color? textColor,
  14. double? fontSize,
  15. double? borderRadius,
  16. FontWeight? fontWeight,
  17. Function? onChange,
  18. String defaultText = 'Select Date',
  19. WidgetStyleRF? widgetStyle,
  20. Widget? placeholder,
})

Implementation

DatePickerRF({
  this.model,
  this.field,
  this.initialDate,
  this.showInitialDate = false,
  this.maxDate,
  this.minDate,
  this.decoration,
  this.backgroundColor,
  this.widgetHeight = 50,
  this.enabled = true,
  this.borderColor,
  this.borderWidth,
  this.textColor,
  this.fontSize,
  this.borderRadius,
  this.fontWeight,
  this.onChange,
  this.defaultText = 'Select Date',
  this.widgetStyle,
  this.placeholder,
}) {
  if (maxDate == null) maxDate = DateTime.now();
  if (minDate == null) minDate = DateTime(1970);
}