copyWith method
DayHeaderStyle
copyWith({
- TextStyle? textStyle,
- TextStyle? numberTextStyle,
- MainAxisAlignment? mainAxisAlignment,
Creates a copy of this style with the given fields replaced with the new values.
Implementation
DayHeaderStyle copyWith({TextStyle? textStyle, TextStyle? numberTextStyle, MainAxisAlignment? mainAxisAlignment}) {
return DayHeaderStyle(
textStyle: textStyle ?? this.textStyle,
numberTextStyle: numberTextStyle ?? this.numberTextStyle,
mainAxisAlignment: mainAxisAlignment ?? this.mainAxisAlignment,
);
}