copyWith method
Returns a copy of this FCalendarYearStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FCalendarYearStyle.textStyle - The year's text style.
- FCalendarYearStyle.decoration - The decoration painted behind the year's text.
Implementation
@useResult
FCalendarYearStyle copyWith({TextStyleDelta? textStyle, DecorationDelta? decoration}) => .new(
textStyle: textStyle?.call(this.textStyle) ?? this.textStyle,
decoration: decoration?.call(this.decoration) ?? this.decoration,
);