copyWith method
- @useResult
- FCalendarHeaderStyleDelta? headerStyle,
- FCalendarDayPickerStyleDelta? dayPickerStyle,
- FCalendarEntryStyleDelta? yearMonthPickerStyle,
- DecorationDelta? decoration,
- EdgeInsetsGeometryDelta? padding,
- Duration? pageAnimationDuration,
Returns a copy of this FCalendarStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FCalendarStyle.headerStyle - The header's style.
- FCalendarStyle.dayPickerStyle - The day picker's style.
- FCalendarStyle.yearMonthPickerStyle - The year/month picker's style.
- FCalendarStyle.decoration - The decoration surrounding the header & picker.
- FCalendarStyle.padding - The padding surrounding the header & picker.
- FCalendarStyle.pageAnimationDuration - The duration of the page switch animation.
Implementation
@useResult
FCalendarStyle copyWith({
FCalendarHeaderStyleDelta? headerStyle,
FCalendarDayPickerStyleDelta? dayPickerStyle,
FCalendarEntryStyleDelta? yearMonthPickerStyle,
DecorationDelta? decoration,
EdgeInsetsGeometryDelta? padding,
Duration? pageAnimationDuration,
}) => .new(
headerStyle: headerStyle?.call(this.headerStyle) ?? this.headerStyle,
dayPickerStyle: dayPickerStyle?.call(this.dayPickerStyle) ?? this.dayPickerStyle,
yearMonthPickerStyle: yearMonthPickerStyle?.call(this.yearMonthPickerStyle) ?? this.yearMonthPickerStyle,
decoration: decoration?.call(this.decoration) ?? this.decoration,
padding: padding?.call(this.padding) ?? this.padding,
pageAnimationDuration: pageAnimationDuration ?? this.pageAnimationDuration,
);