copyWith method
- @useResult
- FCalendarHeaderStyle? headerStyle,
- FCalendarDayPickerStyle? dayPickerStyle,
- FCalendarYearMonthPickerStyle? yearMonthPickerStyle,
- BoxDecoration? decoration,
- EdgeInsets? padding,
- 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,
);