TDDatePicker constructor

const TDDatePicker({
  1. required String title,
  2. required DatePickerCallback? onConfirm,
  3. DatePickerCallback? onCancel,
  4. Color? backgroundColor,
  5. Color? titleDividerColor,
  6. double? topRadius,
  7. double? titleHeight,
  8. EdgeInsets? padding,
  9. double? leftPadding,
  10. double? rightPadding,
  11. TextStyle? leftTextStyle,
  12. TextStyle? rightTextStyle,
  13. TextStyle? centerTextStyle,
  14. Widget? customSelectWidget,
  15. ItemDistanceCalculator? itemDistanceCalculator,
  16. required DatePickerModel model,
  17. bool showTitle = true,
  18. double pickerHeight = 200,
  19. required int pickerItemCount,
  20. Key? key,
})

Implementation

const TDDatePicker(
    {required this.title,
      required this.onConfirm,
      this.onCancel,
      this.backgroundColor,
      this.titleDividerColor,
      this.topRadius,
      this.titleHeight,
      this.padding,
      this.leftPadding,
      this.rightPadding,
      this.leftTextStyle,
      this.rightTextStyle,
      this.centerTextStyle,
      this.customSelectWidget,
      this.itemDistanceCalculator,
      required this.model,
      this.showTitle = true,
      this.pickerHeight = 200,
      required this.pickerItemCount,
      Key? key}) : super(key: key);