copyWith method

CustomDatePickerThemeData copyWith({
  1. Color? ink,
  2. Color? muted,
  3. Color? accent,
  4. Color? onAccent,
  5. Color? sheet,
  6. Color? highlight,
  7. Color? line,
  8. Color? fieldFill,
  9. Color? error,
  10. double? radius,
  11. Color? confirmBackground,
  12. Color? confirmForeground,
  13. Color? cancelBackground,
  14. Color? cancelForeground,
  15. Color? cancelBorder,
  16. Color? todayForeground,
  17. Color? disabledButton,
  18. Color? selectedDay,
  19. Color? selectedDayText,
  20. Color? iconColor,
  21. double? buttonHeight,
  22. double? buttonRadius,
  23. double? buttonFontSize,
  24. double? buttonGap,
  25. EdgeInsetsGeometry? buttonPadding,
  26. TextStyle? buttonTextStyle,
  27. ButtonStyle? confirmButtonStyle,
  28. ButtonStyle? cancelButtonStyle,
  29. ButtonStyle? todayButtonStyle,
  30. String? confirmText,
  31. String? cancelText,
  32. String? todayText,
  33. String? nowText,
  34. double? sheetRadius,
  35. EdgeInsetsGeometry? sheetMargin,
  36. EdgeInsetsGeometry? sheetPadding,
  37. EdgeInsetsGeometry? fieldPadding,
  38. EdgeInsetsGeometry? fieldContentPadding,
  39. double? borderWidth,
  40. double? labelFontSize,
  41. double? valueFontSize,
  42. double? captionFontSize,
  43. double? previewFontSize,
  44. double? rangePreviewFontSize,
  45. double? subtitleFontSize,
  46. double? errorFontSize,
  47. double? weekdayFontSize,
  48. double? monthTitleFontSize,
  49. double? dayFontSize,
  50. double? wheelFontSize,
  51. double? wheelSelectedFontSize,
  52. TextStyle? labelTextStyle,
  53. TextStyle? valueTextStyle,
  54. TextStyle? captionTextStyle,
  55. TextStyle? previewTextStyle,
  56. TextStyle? errorTextStyle,
  57. double? dayCellSize,
  58. double? dayGridExtent,
  59. double? wheelHeight,
  60. double? wheelItemExtent,
  61. double? iconSize,
  62. double? clearIconSize,
})

Implementation

CustomDatePickerThemeData copyWith({
  Color? ink,
  Color? muted,
  Color? accent,
  Color? onAccent,
  Color? sheet,
  Color? highlight,
  Color? line,
  Color? fieldFill,
  Color? error,
  double? radius,
  Color? confirmBackground,
  Color? confirmForeground,
  Color? cancelBackground,
  Color? cancelForeground,
  Color? cancelBorder,
  Color? todayForeground,
  Color? disabledButton,
  Color? selectedDay,
  Color? selectedDayText,
  Color? iconColor,
  double? buttonHeight,
  double? buttonRadius,
  double? buttonFontSize,
  double? buttonGap,
  EdgeInsetsGeometry? buttonPadding,
  TextStyle? buttonTextStyle,
  ButtonStyle? confirmButtonStyle,
  ButtonStyle? cancelButtonStyle,
  ButtonStyle? todayButtonStyle,
  String? confirmText,
  String? cancelText,
  String? todayText,
  String? nowText,
  double? sheetRadius,
  EdgeInsetsGeometry? sheetMargin,
  EdgeInsetsGeometry? sheetPadding,
  EdgeInsetsGeometry? fieldPadding,
  EdgeInsetsGeometry? fieldContentPadding,
  double? borderWidth,
  double? labelFontSize,
  double? valueFontSize,
  double? captionFontSize,
  double? previewFontSize,
  double? rangePreviewFontSize,
  double? subtitleFontSize,
  double? errorFontSize,
  double? weekdayFontSize,
  double? monthTitleFontSize,
  double? dayFontSize,
  double? wheelFontSize,
  double? wheelSelectedFontSize,
  TextStyle? labelTextStyle,
  TextStyle? valueTextStyle,
  TextStyle? captionTextStyle,
  TextStyle? previewTextStyle,
  TextStyle? errorTextStyle,
  double? dayCellSize,
  double? dayGridExtent,
  double? wheelHeight,
  double? wheelItemExtent,
  double? iconSize,
  double? clearIconSize,
}) {
  return CustomDatePickerThemeData(
    ink: ink ?? this.ink,
    muted: muted ?? this.muted,
    accent: accent ?? this.accent,
    onAccent: onAccent ?? this.onAccent,
    sheet: sheet ?? this.sheet,
    highlight: highlight ?? this.highlight,
    line: line ?? this.line,
    fieldFill: fieldFill ?? this.fieldFill,
    error: error ?? this.error,
    radius: radius ?? this.radius,
    confirmBackground: confirmBackground ?? this.confirmBackground,
    confirmForeground: confirmForeground ?? this.confirmForeground,
    cancelBackground: cancelBackground ?? this.cancelBackground,
    cancelForeground: cancelForeground ?? this.cancelForeground,
    cancelBorder: cancelBorder ?? this.cancelBorder,
    todayForeground: todayForeground ?? this.todayForeground,
    disabledButton: disabledButton ?? this.disabledButton,
    selectedDay: selectedDay ?? this.selectedDay,
    selectedDayText: selectedDayText ?? this.selectedDayText,
    iconColor: iconColor ?? this.iconColor,
    buttonHeight: buttonHeight ?? this.buttonHeight,
    buttonRadius: buttonRadius ?? this.buttonRadius,
    buttonFontSize: buttonFontSize ?? this.buttonFontSize,
    buttonGap: buttonGap ?? this.buttonGap,
    buttonPadding: buttonPadding ?? this.buttonPadding,
    buttonTextStyle: buttonTextStyle ?? this.buttonTextStyle,
    confirmButtonStyle: confirmButtonStyle ?? this.confirmButtonStyle,
    cancelButtonStyle: cancelButtonStyle ?? this.cancelButtonStyle,
    todayButtonStyle: todayButtonStyle ?? this.todayButtonStyle,
    confirmText: confirmText ?? this.confirmText,
    cancelText: cancelText ?? this.cancelText,
    todayText: todayText ?? this.todayText,
    nowText: nowText ?? this.nowText,
    sheetRadius: sheetRadius ?? this.sheetRadius,
    sheetMargin: sheetMargin ?? this.sheetMargin,
    sheetPadding: sheetPadding ?? this.sheetPadding,
    fieldPadding: fieldPadding ?? this.fieldPadding,
    fieldContentPadding: fieldContentPadding ?? this.fieldContentPadding,
    borderWidth: borderWidth ?? this.borderWidth,
    labelFontSize: labelFontSize ?? this.labelFontSize,
    valueFontSize: valueFontSize ?? this.valueFontSize,
    captionFontSize: captionFontSize ?? this.captionFontSize,
    previewFontSize: previewFontSize ?? this.previewFontSize,
    rangePreviewFontSize: rangePreviewFontSize ?? this.rangePreviewFontSize,
    subtitleFontSize: subtitleFontSize ?? this.subtitleFontSize,
    errorFontSize: errorFontSize ?? this.errorFontSize,
    weekdayFontSize: weekdayFontSize ?? this.weekdayFontSize,
    monthTitleFontSize: monthTitleFontSize ?? this.monthTitleFontSize,
    dayFontSize: dayFontSize ?? this.dayFontSize,
    wheelFontSize: wheelFontSize ?? this.wheelFontSize,
    wheelSelectedFontSize:
        wheelSelectedFontSize ?? this.wheelSelectedFontSize,
    labelTextStyle: labelTextStyle ?? this.labelTextStyle,
    valueTextStyle: valueTextStyle ?? this.valueTextStyle,
    captionTextStyle: captionTextStyle ?? this.captionTextStyle,
    previewTextStyle: previewTextStyle ?? this.previewTextStyle,
    errorTextStyle: errorTextStyle ?? this.errorTextStyle,
    dayCellSize: dayCellSize ?? this.dayCellSize,
    dayGridExtent: dayGridExtent ?? this.dayGridExtent,
    wheelHeight: wheelHeight ?? this.wheelHeight,
    wheelItemExtent: wheelItemExtent ?? this.wheelItemExtent,
    iconSize: iconSize ?? this.iconSize,
    clearIconSize: clearIconSize ?? this.clearIconSize,
  );
}