copyWith method

  1. @useResult
FCalendarStyle copyWith({
  1. FCalendarHeaderStyle? headerStyle,
  2. FCalendarDayPickerStyle? dayPickerStyle,
  3. FCalendarYearMonthPickerStyle? yearMonthPickerStyle,
  4. BoxDecoration? decoration,
  5. EdgeInsets? padding,
  6. Duration? pageAnimationDuration,
})

Returns a copy of this FCalendarStyle but with the given fields replaced with the new values.

Implementation

@useResult
FCalendarStyle copyWith({
  FCalendarHeaderStyle? headerStyle,
  FCalendarDayPickerStyle? dayPickerStyle,
  FCalendarYearMonthPickerStyle? yearMonthPickerStyle,
  BoxDecoration? decoration,
  EdgeInsets? padding,
  Duration? pageAnimationDuration,
}) =>
    FCalendarStyle(
      headerStyle: headerStyle ?? this.headerStyle,
      dayPickerStyle: dayPickerStyle ?? this.dayPickerStyle,
      yearMonthPickerStyle: yearMonthPickerStyle ?? this.yearMonthPickerStyle,
      decoration: decoration ?? this.decoration,
      padding: padding ?? this.padding,
      pageAnimationDuration: pageAnimationDuration ?? this.pageAnimationDuration,
    );