copyWith method

MonthWidgetStyle copyWith({
  1. int? startOfWeek,
  2. Decoration? weeksDecoration,
  3. EdgeInsetsGeometry? weeksPadding,
  4. bool? removeIndividualWeekDecorations,
  5. EdgeInsetsGeometry? datePadding,
  6. bool? showDatesFromOtherMonths,
  7. bool? showDatesFromOtherMonthsAsDisabled,
})

Implementation

MonthWidgetStyle copyWith({
  int? startOfWeek,
  Decoration? weeksDecoration,
  EdgeInsetsGeometry? weeksPadding,
  bool? removeIndividualWeekDecorations,
  EdgeInsetsGeometry? datePadding,
  bool? showDatesFromOtherMonths,
  bool? showDatesFromOtherMonthsAsDisabled,
}) {
  return MonthWidgetStyle.raw(
    startOfWeek: startOfWeek ?? this.startOfWeek,
    weeksDecoration: weeksDecoration ?? this.weeksDecoration,
    weeksPadding: weeksPadding ?? this.weeksPadding,
    removeIndividualWeekDecorations: removeIndividualWeekDecorations ??
        this.removeIndividualWeekDecorations,
    datePadding: datePadding ?? this.datePadding,
    showDatesFromOtherMonths:
        showDatesFromOtherMonths ?? this.showDatesFromOtherMonths,
    showDatesFromOtherMonthsAsDisabled: showDatesFromOtherMonthsAsDisabled ??
        this.showDatesFromOtherMonthsAsDisabled,
  );
}