JGlobalDatePicker constructor

const JGlobalDatePicker({
  1. Key? key,
  2. PickerType pickerType = PickerType.JHijri,
  3. JDateModel? startDate,
  4. JDateModel? endDate,
  5. JDateModel? selectedDate,
  6. DatePickerMode? pickerMode,
  7. Widget? headerTitle,
  8. dynamic onOk(
    1. JPickerValue datetime
    )?,
  9. dynamic onChange(
    1. JPickerValue datetime
    )?,
  10. VoidCallback? onCancel,
  11. Color? primaryColor,
  12. Color? backgroundColor,
  13. Color? calendarTextColor,
  14. Color? buttonTextColor,
  15. Radius? borderRadius,
  16. Widget? buttons,
  17. WidgetType widgetType = WidgetType.JDialog,
  18. TextDirection? textDirection,
  19. Locale? locale,
  20. Color? cancelButtonColor,
  21. Color? okButtonColor,
  22. SelectableDayPredicate? selectableDayPredicate,
  23. JSelectableDayPredicate? jSelectableDayPredicate,
  24. String? okButtonText,
  25. String? cancelButtonText,
  26. ThemeData? pickerTheme,
})

Implementation

const JGlobalDatePicker(
    {Key? key,
    this.pickerType = PickerType.JHijri,
    this.startDate,
    this.endDate,
    this.selectedDate,
    this.pickerMode,
    this.headerTitle,
    this.onOk,
    this.onChange,
    this.onCancel,
    this.primaryColor,
    this.backgroundColor,
    this.calendarTextColor,
    this.buttonTextColor,
    this.borderRadius,
    this.buttons,
    this.widgetType = WidgetType.JDialog,
    this.textDirection,
    this.locale,
    this.cancelButtonColor,
    this.okButtonColor,
    this.selectableDayPredicate,
    this.jSelectableDayPredicate,
    this.okButtonText,
    this.cancelButtonText,
    this.pickerTheme})
    : super(key: key);