copyWith method

SfDateRangePickerThemeData copyWith({
  1. Brightness? brightness,
  2. TextStyle? viewHeaderTextStyle,
  3. Color? backgroundColor,
  4. TextStyle? headerTextStyle,
  5. TextStyle? trailingDatesTextStyle,
  6. TextStyle? leadingCellTextStyle,
  7. TextStyle? activeDatesTextStyle,
  8. TextStyle? cellTextStyle,
  9. TextStyle? rangeSelectionTextStyle,
  10. TextStyle? leadingDatesTextStyle,
  11. TextStyle? disabledDatesTextStyle,
  12. TextStyle? disabledCellTextStyle,
  13. Color? selectionColor,
  14. Color? rangeSelectionColor,
  15. Color? weekNumberBackgroundColor,
  16. TextStyle? selectionTextStyle,
  17. Color? startRangeSelectionColor,
  18. Color? endRangeSelectionColor,
  19. Color? headerBackgroundColor,
  20. Color? viewHeaderBackgroundColor,
  21. TextStyle? blackoutDatesTextStyle,
  22. Color? todayHighlightColor,
  23. TextStyle? todayTextStyle,
  24. TextStyle? todayCellTextStyle,
  25. TextStyle? weekendDatesTextStyle,
  26. TextStyle? specialDatesTextStyle,
  27. TextStyle? weekNumberTextStyle,
})

Creates a copy of this theme but with the given fields replaced with the new values.

Implementation

SfDateRangePickerThemeData copyWith({
  Brightness? brightness,
  TextStyle? viewHeaderTextStyle,
  Color? backgroundColor,
  TextStyle? headerTextStyle,
  TextStyle? trailingDatesTextStyle,
  TextStyle? leadingCellTextStyle,
  TextStyle? activeDatesTextStyle,
  TextStyle? cellTextStyle,
  TextStyle? rangeSelectionTextStyle,
  TextStyle? leadingDatesTextStyle,
  TextStyle? disabledDatesTextStyle,
  TextStyle? disabledCellTextStyle,
  Color? selectionColor,
  Color? rangeSelectionColor,
  Color? weekNumberBackgroundColor,
  TextStyle? selectionTextStyle,
  Color? startRangeSelectionColor,
  Color? endRangeSelectionColor,
  Color? headerBackgroundColor,
  Color? viewHeaderBackgroundColor,
  TextStyle? blackoutDatesTextStyle,
  Color? todayHighlightColor,
  TextStyle? todayTextStyle,
  TextStyle? todayCellTextStyle,
  TextStyle? weekendDatesTextStyle,
  TextStyle? specialDatesTextStyle,
  TextStyle? weekNumberTextStyle,
}) {
  return SfDateRangePickerThemeData.raw(
    brightness: brightness ?? this.brightness,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    viewHeaderTextStyle: viewHeaderTextStyle ?? this.viewHeaderTextStyle,
    headerTextStyle: headerTextStyle ?? this.headerTextStyle,
    trailingDatesTextStyle:
        trailingDatesTextStyle ?? this.trailingDatesTextStyle,
    leadingCellTextStyle: leadingCellTextStyle ?? this.leadingCellTextStyle,
    activeDatesTextStyle: activeDatesTextStyle ?? this.activeDatesTextStyle,
    cellTextStyle: cellTextStyle ?? this.cellTextStyle,
    rangeSelectionTextStyle:
        rangeSelectionTextStyle ?? this.rangeSelectionTextStyle,
    rangeSelectionColor: rangeSelectionColor ?? this.rangeSelectionColor,
    weekNumberBackgroundColor:
        weekNumberBackgroundColor ?? this.weekNumberBackgroundColor,
    leadingDatesTextStyle:
        leadingDatesTextStyle ?? this.leadingDatesTextStyle,
    disabledDatesTextStyle:
        disabledDatesTextStyle ?? this.disabledDatesTextStyle,
    disabledCellTextStyle:
        disabledCellTextStyle ?? this.disabledCellTextStyle,
    selectionColor: selectionColor ?? this.selectionColor,
    selectionTextStyle: selectionTextStyle ?? this.selectionTextStyle,
    startRangeSelectionColor:
        startRangeSelectionColor ?? this.startRangeSelectionColor,
    endRangeSelectionColor:
        endRangeSelectionColor ?? this.endRangeSelectionColor,
    headerBackgroundColor:
        headerBackgroundColor ?? this.headerBackgroundColor,
    viewHeaderBackgroundColor:
        viewHeaderBackgroundColor ?? this.viewHeaderBackgroundColor,
    blackoutDatesTextStyle:
        blackoutDatesTextStyle ?? this.blackoutDatesTextStyle,
    todayHighlightColor: todayHighlightColor ?? this.todayHighlightColor,
    todayTextStyle: todayTextStyle ?? this.todayTextStyle,
    todayCellTextStyle: todayCellTextStyle ?? this.todayCellTextStyle,
    weekendDatesTextStyle:
        weekendDatesTextStyle ?? this.weekendDatesTextStyle,
    specialDatesTextStyle:
        specialDatesTextStyle ?? this.specialDatesTextStyle,
    weekNumberTextStyle: weekNumberTextStyle ?? this.weekNumberTextStyle,
  );
}