DatePickerRF constructor
DatePickerRF({
- Object? model,
- String? field,
- DateTime? initialDate,
- bool showInitialDate = false,
- DateTime? maxDate,
- DateTime? minDate,
- BoxDecoration? decoration,
- Color? backgroundColor,
- double widgetHeight = 50,
- bool enabled = true,
- Color? borderColor,
- double? borderWidth,
- Color? textColor,
- double? fontSize,
- double? borderRadius,
- FontWeight? fontWeight,
- Function? onChange,
- String defaultText = 'Select Date',
- WidgetStyleRF? widgetStyle,
- 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);
}