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