copyWith method

ZeroCalendarPickerStyle copyWith({
  1. TextStyle? headerTextStyle,
  2. TextStyle? dayTextStyle,
  3. Color? enabledDayColor,
  4. Color? disabledDayColor,
  5. Color? selectedDayColor,
  6. Color? selectedDayBackground,
  7. Color? highlightColor,
  8. Color? todayColor,
  9. Color? controlColor,
  10. Color? inactiveControlColor,
  11. ZeroListTileStyle? monthListTileStyle,
  12. ZeroListTileStyle? yearListTileStyle,
  13. Widget? monthLeftIcon,
  14. 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);
}