DropDownDate constructor

DropDownDate({
  1. Key? key,
  2. DateTime? currentDate,
  3. required DateTime? initialDate,
  4. required DateTime firstDate,
  5. required DateTime lastDate,
  6. required ValueChanged<DateTime> onDateChanged,
  7. ValueChanged<DateTime>? onDisplayedMonthChanged,
  8. DatePickerMode initialCalendarMode = DatePickerMode.day,
  9. SelectableDayPredicate? selectableDayPredicate,
  10. Widget? customTopWidget,
  11. String? hintText,
  12. String? labelText,
  13. Widget? inputDescriptionWidget,
  14. bool showDoneOnHeader = false,
  15. Widget? bottomSheetTitle,
  16. bool isDismissible = true,
  17. Widget? submitButtonChild,
  18. int? submitButtonFlex,
  19. Widget? cancelButtonChild,
  20. EdgeInsets? buttonPadding,
  21. String? searchHintText = 'Search',
  22. bool fromSide = false,
  23. double? widthSide,
  24. EdgeInsetsGeometry? margin,
  25. Color? color,
  26. TextStyle? textStyle,
  27. TextStyle? textStyleSelected,
  28. Color? selectedColor,
  29. Color dropDownBackgroundColor = Colors.transparent,
  30. BottomSheetCalListener? bottomSheetListener,
  31. bool noCloseDialog = false,
})

Implementation

DropDownDate({
  Key? key,
  this.currentDate,
  required this.initialDate,
  required this.firstDate,
  required this.lastDate,
  required this.onDateChanged,
  this.onDisplayedMonthChanged,
  this.initialCalendarMode = DatePickerMode.day,
  this.selectableDayPredicate,
  this.customTopWidget,
  this.hintText,
  this.labelText,
  this.inputDescriptionWidget,
  this.showDoneOnHeader = false,
  this.bottomSheetTitle,
  this.isDismissible = true,
  this.submitButtonChild,
  this.submitButtonFlex,
  this.cancelButtonChild,
  this.buttonPadding,
  this.searchHintText = 'Search',
  this.fromSide = false,
  this.widthSide,
  this.margin,
  this.color,
  this.textStyle,
  this.textStyleSelected,
  this.selectedColor,
  this.dropDownBackgroundColor = Colors.transparent,
  this.bottomSheetListener,
  this.noCloseDialog = false,
});