copyWith method
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,
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,
);
}