copyWith method

DayHeaderStyle copyWith({
  1. TextStyle? textStyle,
  2. TextStyle? numberTextStyle,
  3. 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,
  );
}