copyWith method
ZeroCalendarPickerStyle
copyWith({
- TextStyle? headerTextStyle,
- TextStyle? dayTextStyle,
- Color? enabledDayColor,
- Color? disabledDayColor,
- Color? selectedDayColor,
- Color? selectedDayBackground,
- Color? highlightColor,
- Color? todayColor,
- Color? controlColor,
- Color? inactiveControlColor,
- ZeroListTileStyle? monthListTileStyle,
- ZeroListTileStyle? yearListTileStyle,
- Widget? monthLeftIcon,
- Widget? yearLeftIcon,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
ZeroCalendarPickerStyle copyWith(
{TextStyle? headerTextStyle,
TextStyle? dayTextStyle,
Color? enabledDayColor,
Color? disabledDayColor,
Color? selectedDayColor,
Color? selectedDayBackground,
Color? highlightColor,
Color? todayColor,
Color? controlColor,
Color? inactiveControlColor,
ZeroListTileStyle? monthListTileStyle,
ZeroListTileStyle? yearListTileStyle,
Widget? monthLeftIcon,
Widget? yearLeftIcon}) {
return ZeroCalendarPickerStyle(
headerTextStyle: headerTextStyle ?? this.headerTextStyle,
dayTextStyle: dayTextStyle ?? this.dayTextStyle,
enabledDayColor:
enabledDayColor ?? enabledDayColor ?? this.enabledDayColor,
disabledDayColor: disabledDayColor ?? this.disabledDayColor,
selectedDayBackground:
selectedDayBackground ?? this.selectedDayBackground,
selectedDayColor: selectedDayColor ?? this.selectedDayColor,
highlightColor: highlightColor ?? this.highlightColor,
todayColor: todayColor ?? this.todayColor,
controlColor: controlColor ?? this.controlColor,
inactiveControlColor: inactiveControlColor ?? this.inactiveControlColor,
monthListTileStyle: monthListTileStyle ?? this.monthListTileStyle,
yearListTileStyle: yearListTileStyle ?? this.yearListTileStyle,
monthLeftIcon: monthLeftIcon ?? this.monthLeftIcon,
yearLeftIcon: yearLeftIcon ?? this.yearLeftIcon);
}