GfDatePicker constructor

GfDatePicker({
  1. Key? key,
  2. String? errorText,
  3. String? cancelText,
  4. String? confirmText,
  5. String? helpText,
  6. String? hourLabelText,
  7. String? minuteLabelText,
  8. DateTime? defaultDate,
  9. DateTime? initialDate,
  10. DateTime? lastDate,
  11. String? labelText,
  12. Color? borderColor,
  13. String? headingText,
  14. double? borderWidth,
  15. String? buttonText,
  16. Icon? buttonIcon,
  17. EdgeInsets? margin,
  18. 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.');
  }
}