copyWith method
- @useResult
- FCalendarHeaderStyleDelta? headerStyle,
- FCalendarDayPickerStyleDelta? dayPickerStyle,
- FCalendarMonthPickerStyleDelta? monthPickerStyle,
- FCalendarYearPickerStyleDelta? yearPickerStyle,
- FPickerStyleDelta? wheelPickerStyle,
- DecorationDelta? decoration,
- EdgeInsetsGeometryDelta? padding,
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.monthPickerStyle - The month picker's style.
- FCalendarStyle.yearPickerStyle - The year picker's style.
- FCalendarStyle.wheelPickerStyle - The wheel picker's style.
- FCalendarStyle.decoration - The decoration surrounding the header & picker.
- FCalendarStyle.padding - The padding surrounding the header & picker.
Implementation
@useResult
FCalendarStyle copyWith({
FCalendarHeaderStyleDelta? headerStyle,
FCalendarDayPickerStyleDelta? dayPickerStyle,
FCalendarMonthPickerStyleDelta? monthPickerStyle,
FCalendarYearPickerStyleDelta? yearPickerStyle,
FPickerStyleDelta? wheelPickerStyle,
DecorationDelta? decoration,
EdgeInsetsGeometryDelta? padding,
}) => .new(
headerStyle: headerStyle?.call(this.headerStyle) ?? this.headerStyle,
dayPickerStyle: dayPickerStyle?.call(this.dayPickerStyle) ?? this.dayPickerStyle,
monthPickerStyle: monthPickerStyle?.call(this.monthPickerStyle) ?? this.monthPickerStyle,
yearPickerStyle: yearPickerStyle?.call(this.yearPickerStyle) ?? this.yearPickerStyle,
wheelPickerStyle: wheelPickerStyle?.call(this.wheelPickerStyle) ?? this.wheelPickerStyle,
decoration: decoration?.call(this.decoration) ?? this.decoration,
padding: padding?.call(this.padding) ?? this.padding,
);