GfDatePicker constructor
GfDatePicker({
- Key? key,
- String? errorText,
- String? cancelText,
- String? confirmText,
- String? helpText,
- String? hourLabelText,
- String? minuteLabelText,
- DateTime? defaultDate,
- DateTime? initialDate,
- DateTime? lastDate,
- String? labelText,
- Color? borderColor,
- String? headingText,
- double? borderWidth,
- String? buttonText,
- Icon? buttonIcon,
- EdgeInsets? margin,
- EdgeInsets? padding,
Implementation
GfDatePicker(
{Key? key,
this.errorText,
this.cancelText,
this.confirmText,
this.helpText,
this.hourLabelText,
this.minuteLabelText,
this.defaultDate,
this.initialDate,
this.lastDate,
this.labelText,
this.borderColor,
this.headingText,
this.borderWidth,
this.buttonText,
this.buttonIcon,
this.margin,
this.padding})
: super(key: key) {
if ((initialDate != null || lastDate != null) && defaultDate == null) {
throw Exception(
'Provide a default date while intializing with initial date or final date.');
}
}