copyWith method
- @useResult
- FWidgetStateMap<
Color> ? backgroundColor, - FWidgetStateMap<
Color?> ? borderColor, - FWidgetStateMap<
TextStyle> ? textStyle, - Radius? radius,
Returns a copy of this FCalendarEntryStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
backgroundColor
The day's background color.
Supported states:
borderColor
The border.
Supported states:
textStyle
The day's text style.
Supported states:
radius
The entry border's radius. Defaults to Radius.circular(4)
.
Implementation
@useResult
FCalendarEntryStyle copyWith({
FWidgetStateMap<Color>? backgroundColor,
FWidgetStateMap<Color?>? borderColor,
FWidgetStateMap<TextStyle>? textStyle,
Radius? radius,
}) => FCalendarEntryStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
borderColor: borderColor ?? this.borderColor,
textStyle: textStyle ?? this.textStyle,
radius: radius ?? this.radius,
);