copyWith method
- @useResult
- double? headerSpacing,
- FVariantsDelta<
FCalendarYearVariantConstraint, FCalendarYearVariant, FCalendarYearStyle, FCalendarYearStyleDelta> ? yearStyles, - Size? yearSize,
- double? yearSpacing,
Returns a copy of this FCalendarYearPickerStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FCalendarYearPickerStyle.headerSpacing - The spacing between the header and the year picker.
- FCalendarYearPickerStyle.yearStyles - The styles of the year tiles.
- FCalendarYearPickerStyle.yearSize - The size of each year.
- FCalendarYearPickerStyle.yearSpacing - The vertical spacing between rows of years in the year picker.
Implementation
@useResult
FCalendarYearPickerStyle copyWith({
double? headerSpacing,
FVariantsDelta<FCalendarYearVariantConstraint, FCalendarYearVariant, FCalendarYearStyle, FCalendarYearStyleDelta>?
yearStyles,
Size? yearSize,
double? yearSpacing,
}) => .new(
headerSpacing: headerSpacing ?? this.headerSpacing,
yearStyles: FCalendarYearStyles(yearStyles?.call(this.yearStyles) ?? this.yearStyles),
yearSize: yearSize ?? this.yearSize,
yearSpacing: yearSpacing ?? this.yearSpacing,
);