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