copyWith method

Returns a copy of this FCalendarYearPickerStyle with the given properties replaced.

See customizing widget styles.

Parameters

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,
);