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