copyWith method

CalendarScheme copyWith({
  1. Dim? cellSize,
  2. Dim? dateFontSize,
  3. Dim? weekdayFontSize,
  4. Dim? weekdayGap,
  5. Dim? titleFontSize,
  6. Dim? stepperWidth,
  7. Dim? stepperHeight,
  8. Dim? stepperFontSize,
  9. Dim? compactCellSize,
  10. Dim? compactDateFontSize,
  11. Dim? compactWeekdayFontSize,
  12. Dim? compactWeekdayGap,
  13. Dim? compactTitleFontSize,
  14. Dim? compactStepperHeight,
  15. Dim? compactStepperFontSize,
})

Implementation

CalendarScheme copyWith({
  Dim? cellSize,
  Dim? dateFontSize,
  Dim? weekdayFontSize,
  Dim? weekdayGap,
  Dim? titleFontSize,
  Dim? stepperWidth,
  Dim? stepperHeight,
  Dim? stepperFontSize,
  Dim? compactCellSize,
  Dim? compactDateFontSize,
  Dim? compactWeekdayFontSize,
  Dim? compactWeekdayGap,
  Dim? compactTitleFontSize,
  Dim? compactStepperHeight,
  Dim? compactStepperFontSize,
}) {
  return CalendarScheme(
    cellSize: cellSize ?? this.cellSize,
    dateFontSize: dateFontSize ?? this.dateFontSize,
    weekdayFontSize: weekdayFontSize ?? this.weekdayFontSize,
    weekdayGap: weekdayGap ?? this.weekdayGap,
    titleFontSize: titleFontSize ?? this.titleFontSize,
    stepperWidth: stepperWidth ?? this.stepperWidth,
    stepperHeight: stepperHeight ?? this.stepperHeight,
    stepperFontSize: stepperFontSize ?? this.stepperFontSize,
    compactCellSize: compactCellSize ?? this.compactCellSize,
    compactDateFontSize: compactDateFontSize ?? this.compactDateFontSize,
    compactWeekdayFontSize:
        compactWeekdayFontSize ?? this.compactWeekdayFontSize,
    compactWeekdayGap: compactWeekdayGap ?? this.compactWeekdayGap,
    compactTitleFontSize: compactTitleFontSize ?? this.compactTitleFontSize,
    compactStepperHeight: compactStepperHeight ?? this.compactStepperHeight,
    compactStepperFontSize:
        compactStepperFontSize ?? this.compactStepperFontSize,
  );
}